Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #
    ...
        @INC = ( "/opt/app/lib" );
        use Application::Module;
    }
    
  2. or download this
    Can't locate Application/Module.pm in @INC (@INC contains: /usr/lib/pe
    +rl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/
    +5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-lin
    +ux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-mult
    +i /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/
    +lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/per
    +l5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
    + /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/pe
    +rl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_p
    +erl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /u
    +sr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/
    +lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5
    +/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./test2.pl 
    +line 8.
    BEGIN failed--compilation aborted at ./test2.pl line 8.
    
  3. or download this
    #!/usr/bin/perl
    #
    ...
        @INC = ( "/opt/app/lib" );
        eval "use Application::Module";
    }
    
  4. or download this
    #!/usr/bin/perl
    #
    ...
        @INC = ( "/opt/app/lib" );
    }
    use Application::Module;
    
  5. or download this
    #!/usr/bin/perl
    #
    ...
        local @INC = ( "/opt/app/lib" );
        use Application::Module;
    }
    
  6. or download this
    #!/usr/bin/perl
    #
    ...
    INIT {
        print "here we are in our init block\n";
    }
    
  7. or download this
    here we are in a BEGIN block in an eval in a BEGIN block
    here we are in our nested begin block
    ...
    here we are in our check block
    here we are in an init block in an eval
    here we are in our init block
    
  8. or download this
    #!/usr/bin/perl
    #
    ...
    INIT {
        print "here we are in our init block\n";
    }
    
  9. or download this
    here we are in our nested begin block
    here we are in our begin block
    ...
    here we are in our check block
    here we are in an init block in an eval
    here we are in our init block