Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: What is the significance of a package

by muba (Priest)
on Jul 06, 2012 at 23:05 UTC ( [id://980395]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ### my-perl-script.pl
    use strict;
    ...
    sub foo {
        print "Foo, from the main package.\n";
    }
    
  2. or download this
    ### Bar.pm
    package Bar;
    ...
        print "Also foo, but this comes from the Bar package.\n";
        print "(And no, if my wife calls, I'm not at the bar!)\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found