Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

more fun with my and local??

by jlistf (Monk)
on Jul 28, 2000 at 17:46 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-04-17 14:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found