Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

To module or not?

by bradcathey (Prior)
on Apr 26, 2005 at 13:58 UTC ( #451574=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyModule2; #line 1
    
    ...
       return ($total);
    }
    1;
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    my $amount = 12;
    
    print add_it($amount),"\n";
    
  3. or download this
    sub add_it { 
       my $amount = shift;
    ...
       return ($total);
    }
    1;
    
  4. or download this
    use MyModule;
    
    my $amount = 12;
    
    print add_it($amount),"\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://451574]
Approved by dorko
Front-paged by tlm
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2015-07-06 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls