Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: my and local??

by toadi (Chaplain)
on Jul 28, 2000 at 13:27 UTC ( #24815=note: print w/replies, xml ) Need Help??


in reply to my and local??

</CODE> WARNING: In general, you should be using `my' instead of `local', because it's faster and safer. Exceptions to this include the global punctuation variables, filehandles and formats, and direct manipulation of the Perl symbol table itself. Format variables often use `local' though, as do other variables whose current value must be visible to called subroutines. </CODE>

This is what is written in man perlsub.

I think this is kind of straightforward?

--
My opinions may have changed,
but not the fact that I am right

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2021-04-12 23:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?