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

Re: scope and declaration in local packages

by chromatic (Archbishop)
on Jan 29, 2011 at 18:34 UTC ( #885055=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -T
    
    # implicit BEGIN blocks cause require and importing
    ...
            return 'knor';
        }
    }
    
  2. or download this
    #!/usr/bin/perl -wT
    
    # call object method
    ...
        # assigns to the variable
        our $sound2 = "knor2";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-05-21 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?