Help for this page

Select Code to Download


  1. or download this
    use strict;
    require "pit.pm"; ## also use or require w/o quotes
    ...
    print "1) done\n";
    
    #use pit; ## doesn't work here either
    
  2. or download this
    package pit;
    sub printIT {
    ...
      print "2) #xyzzy\n";
    }
    1;
    
  3. or download this
    wf13[~]>perl testGlobal.pl
    1) abc@example.com
    2)
    1) abc@example.com
    1) done