Perl - Difference Between my local our 
The variables declared with my() are visible only within the scope of the block which names them. They are not visible outside of this block, not even in routines or blocks that it calls.

local() variables, on the other hand, are visible to routines that are called from the block where they are declared.

Neither is visible after the end (the final closing curly brace) of the block at all.


Whereas our() has Package scope.

[ add comment ]   |  permalink  |  related link  |   ( 3 / 20 )

<Back | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Next> Last>>