Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Help needed understanding global variables in Perl

by erikharrison (Deacon)
on Mar 05, 2002 at 15:10 UTC ( #149391=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    package foo;
    ...
    package bar;
    print $foo::y; #prints $y declared with 'our' in package foo
    print $foo::x; #prints $x declared with package name in foo
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://149391]
help
Chatterbox?
[Discipulus]: but Dumas is waiting for me in the bed.. luckly as book author.. see you!
[ELISHEVA]: Sleep well!
[ELISHEVA]: Or read well
[Discipulus]: thanks, best dreams to you all

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-05-28 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?