1.

How will you distinguish between my and local?

Answer»

VARIABLES DECLARED USING the 'my' keyword reside only within that block scope in which they get declared. Such variables do not get inherited, and the functions do not get VISIBILITY when called in that block. Again, when the variables defined as 'local' REMAIN visible in that block. They have visibility in functions when called from that particular block.



Discussion

No Comment Found