Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Using a subroutine as a module

by bobn (Chaplain)
on Nov 03, 2003 at 02:09 UTC ( #303983=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyModule;
    
    sub new { bless {}, shift }
    sub foo { "do some foo stuff" }
    1;
    
  2. or download this
    use MyModule;
    my $o = new MyModule;
    
    $o->foo();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://303983]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-06-25 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (564 votes). Check out past polls.