Help for this page

Select Code to Download


  1. or download this
    if(eval { require "foo.pm"; 1; } ) {
       print "loaded module ok\n";
    }else{
       print "could not load module $@\n";
    }
    
  2. or download this
    if(eval " use foo; 1" ) {
       print "loaded module ok\n";
    }else{
       print "could not load module $@\n";
    }
    
  3. or download this
    print petrol "hello there !";
    
  4. or download this
    print STDOUT "hello\n";
    
  5. or download this
    Unquoted string "petrol" may clash with future reserved word at p line
    + 3.
    Name "main::petrol" used only once: possible typo at p line 3.
    print() on unopened filehandle petrol at p line 3.