Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Simple Module Tutorial

by sg (Pilgrim)
on Feb 05, 2011 at 23:13 UTC ( [id://886453] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyModule;
    use strict;
    ...
    last line of the module needs to be true;
    last line of the _file_ need not be true:
    0;
    
  2. or download this
    #!/c/opt/perl/bin/perl
    use strict;
    ...
    __END__