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

Re: Re: Re: Perl Programming guidlines/rules

by hardburn (Abbot)
on Nov 22, 2002 at 00:33 UTC ( [id://214963]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Perl Programming guidlines/rules
in thread Perl Programming guidelines/rules

. . . those are not globals, by the way . . .

OK, fine, in Perl, there technically aren't any global vars. There is just vars that have a really wide scope. However, for practical matters, widely scoped lexicals are global vars.

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl Programming guidlines/rules
by perrin (Chancellor) on Nov 22, 2002 at 02:12 UTC
    Not really. "Global variable" means something specific in Perl: a variable like $SomePackagage::Foo or just $Foo that is declared without "my". They are global because any other package can see them and change them. Lexical (my) variables are not visible outside of their current scope. It's a significant difference.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found