Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Scalar $ENV in a package

by cianoz (Friar)
on Oct 25, 2000 at 15:19 UTC ( #38327=note: print w/replies, xml ) Need Help??

in reply to Scalar $ENV in a package

from "man perlvar"
       All Perl variables that begin with digits, control
       characters, or punctuation characters are exempt from the
       effects of the package declaration and are always forced
       to be in package main.  A few other names are also exempt:

               ENV             STDIN
               INC             STDOUT
               ARGV            STDERR
so adding
print "\$main::ENV = '$main::ENV'\n";
you get
$main::ENV = '2'
as expected...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38327]
[Eily]: someday FF will start posting back messages where you tell to ignore the previous message
[Eily]: and Hilarity Ensues
Eily says, while failing to write a link properly
[Your Mother]: Goodbye Fancy Feast! Hello Friskies!!!
[LanX]: CB sidebar auto-expansion problem
[Eily]: "tail: warning: following standard input indefinitely is ineffective". I can't help but feel that tail is judging me...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-03-27 16:42 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.