Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: 'our' scoping

by eclark (Scribe)
on Jun 01, 2004 at 23:27 UTC ( [id://358801]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    package foo;
    our $bar = 1;
    
  2. or download this
    use strict;
    
    ...
    use vars qw/$bar/;
    
    $bar = 1;
    
  3. or download this
    use strict;
    
    $foo::bar = 1;
    
  4. or download this
    package foo;
    $bar = 1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found