Help for this page

Select Code to Download


  1. or download this
    $ dir test/
    total 8
    ...
    $ test/script.pl
    Can't locate Module.pm in @INC (@INC contains: /home/eric/lib/perl5/i4
    +86-linux-gnu-thread-multi /home/eric/lib/perl5 /etc/perl /usr/local/l
    +ib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/p
    +erl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .
    +) at test/script.pl line 2.
    BEGIN failed--compilation aborted at test/script.pl line 2.
    
  2. or download this
    use Cwd            qw( realpath );
    use File::Basename qw( dirname );
    
    use lib dirname(realpath($0));