Help for this page

Select Code to Download


  1. or download this
    $ perl -le " use lib do { my @She = qw[ wah diddy diddy dum diddy do ]
    +; $She[ rand @She ]; }; print for @INC "
    diddy
    ...
    C:/perl/5.12.2/lib/MSWin32-x86-multi-thread
    C:/perl/5.12.2/lib
    .
    
  2. or download this
    use File::Spec;
    use File::Basename qw' dirname ';
    ...
        my $thisd = dirname($thisf);
        use lib File::Spec->catfile( $thisd, File::Spec->updir, 'lib' );
    }
    
  3. or download this
    use Path::Class;
    BEGIN {
    ...
        my $thisd = $thisf->dir;
        use lib dir( $thisd, '..','lib' );
    }
    
  4. or download this
    use Path::Class;
    use lib dir( __FILE__, '..','..','lib')->absolute->resolve;