Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is local a declaration?

by helmex (Initiate)
on Apr 10, 2002 at 14:22 UTC ( #158026=note: print w/replies, xml ) Need Help??


in reply to Is local a declaration?

I dido the other commet. Local is not the same as 'my'.
The way I understand it, 'my' is more for initializing, while local is more of a scope property.
When using strict you must declare all variables with 'my'.
If there are certain variables you do not want to initialize you can use var (I sometimes do this with a hash). Just put
use var(all,vars,I,donot,want,initialized,with,my); above your use strict; cheers %^+^%

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-06-28 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (90 votes). Check out past polls.

    Notices?