Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2016-07-01 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (407 votes). Check out past polls.