Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

more fun with my and local??

by jlistf (Monk)
on Jul 28, 2000 at 17:46 UTC ( [id://24844]=note: print w/replies, xml ) Need Help??


in reply to my and local??

some repeat of previous posts, but:

my - creates a lexical variable. this variable is a temporary variable, only visible within the block in which it was declared. also provides deep-binding which is used to create closures.

local - creates a dynamic variable. this variable replaces the value of a package global variable until the end of the block. sub-blocks and subroutines called from this block retain this local value. does not provide deep-binding and so cannot be used to create closures.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://24844]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-26 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found