Help for this page

Select Code to Download


  1. or download this
    package MyModule;
    use Exporter();
    ...
    
    sub frobnicate { print "frobnicated!\n"; }
    sub munge      { print "munged!\n"; }
    
  2. or download this
    use MyModule qw(frobnicate munge);
    frobnicate;
    munge;
    
  3. or download this
    frobnicated!
    munged!
    
  4. or download this
    BEGIN {
       require MyModule;
    ...
    }
    frobnicate;
    munge;
    
  5. or download this
    require MyModule;
    MyModule->import( qw(frobnicate munge) );
    frobnicate;
    munge;