Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Simple Module Tutorial

by tachyon (Chancellor)
on Aug 06, 2001 at 01:30 UTC ( #102347=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyModule;
    
    use strict;
    ...
    sub func2  { return map{ uc }@_ }
    
    1;
    
  2. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
    # use MyModule qw(:Both);
    # print func1(@list),"\n";
    # print func2(@list),"\n";
    
  3. or download this
    BEGIN { push @INC, '/my/dir' }
    # or
    BEGIN { unshift @INC, '/my/dir' }
    # or
    use lib '/my/dir';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-07-31 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls