Help for this page

Select Code to Download


  1. or download this
    BEGIN { require Module; Module->import( LIST ); }
    
  2. or download this
    use Module ();
    
  3. or download this
    BEGIN { require Module }
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    print "***** See? No code in LoadMe is executed! *****\n";
    
  5. or download this
    package LoadMe;
    
    ...
    print "LoadMe: Module initialisation\n";
    system "echo Perl is fully working and can run arbitary code, includin
    +g external programs";
    1; # or any other non-false value
    
  6. or download this
    /tmp/use-demo>perl demo.pl
    >>> About to execute 'use LoadMe;' <<<
    ...
    Good bye cruel world
    
    /tmp/use-demo>
    
  7. or download this
    /tmp/use-demo>perl -cw demo.pl
    >>> About to execute 'use LoadMe;' <<<
    ...
    LoadMe.pm syntax OK
    
    /tmp/use-demo>