Help for this page

Select Code to Download


  1. or download this
    use Cwd qw(abs_path);
    
    my $script_path = abs_path((caller())[1]);
    
    print "$script_path\n";
    
  2. or download this
    package Package;
    
    ...
    }
    
    1;
    
  3. or download this
    use warnings;
    use strict;
    ...
    use lib '.';
    
    use Package;