Help for this page

Select Code to Download


  1. or download this
    package x;
    use Exporter 'import';
    our @EXPORT_OK = ('a', 'b', 'c');
    
  2. or download this
    #main_script
    use x 'a', 'b'; # makes a() and b() available in the main namespace
    
  3. or download this
    #!perl -w
    use strict;
    ...
    sub foo_2 {}
    
    use strict;