Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Why to wrap Perl classes inside a Perl script into blocks

by herveus (Prior)
on Jun 01, 2015 at 17:03 UTC ( [id://1128602]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
        package Foo;
    ...
        package Bar;
        my $foo; # new $foo not to be confused with one above
    }
    
  2. or download this
    package Foo;
    my $foo;
    
    package Bar;
    my $foo; # my declaration masks previous one
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found