Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: OUR declaration

by nobull (Friar)
on Sep 23, 2006 at 12:43 UTC ( #574510=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use AtExit;
    
    ...
        }
        $recursive1->();
    }
    
  2. or download this
    our ($various,%shared,@vars);
    
    ...
        # recursive1() and recursive2()
        frobnicate(\&recursive1);
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    bar('Hello');   # Prints 'Hello Hello Hello'
    bar('Goodbye'); # Prints 'Goodbye Goodbye Goodbye'
    __END__
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-12-09 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?