Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Is local a declaration?

by helmex (Initiate)
on Apr 10, 2002 at 14:22 UTC ( [id://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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-23 23:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found