Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re (tilly) 2: using 'my'

by chip (Curate)
on Jun 23, 2001 at 01:14 UTC ( #90869=note: print w/ replies, xml ) Need Help??


in reply to Re (tilly) 2: using 'my'
in thread using 'my'

FWIW, those truly global variables are really all in the main package. The language parser acts as if those global variable names were prefixed with main:: if no package is specified, no matter what package directive is in scope at the time.

    -- Chip Salzenberg, Free-Floating Agent of Chaos


Comment on Re: Re (tilly) 2: using 'my'
Select or Download Code
Re (tilly) 4: using 'my'
by tilly (Archbishop) on Jun 23, 2001 at 02:21 UTC
    I know that. An amusing side-effect is that if someone mistakenly tries to throw an our on, say, $_ and they are in any package other than main::, it will not work as they expect.

    This might be considered a bug.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-10-01 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (386 votes), past polls