Help for this page

Select Code to Download


  1. or download this
    require Exporter;
    @ISA = qw(Exporter);
    ...
    sub fun2{print "\nfun2 in package " . __PACKAGE__ }
    sub fun3{print "\nfun3 in package " . __PACKAGE__ }
    sub fun4{print "\nfun4 in package " . __PACKAGE__ }
    
  2. or download this
    use Module;
    fun1;
    fun2;
    fun3;
    fun4;
    
  3. or download this
    fun1 in package main
    fun2 in package main
    fun3 in package main
    fun4 in package main
    
  4. or download this
    package Module;
    require Exporter;
    @ISA = qw(Exporter);
    ...
    
  5. or download this
    fun1 in package Module
    fun2 in package Module