Help for this page

Select Code to Download


  1. or download this
        1)  do $file is like eval `cat $file`, except the former
        1.1: searches @INC and updates %INC.
        1.2: bequeaths an *unrelated* lexical scope on the eval'ed code.
    
  2. or download this
    # file foo.pl
    print $var,"\n";
    
  3. or download this
    # requiring code
    $var = 'foo';
    require 'foo.pl';
    
  4. or download this
    # requiring code
    my $var = 'foo';
    require 'foo.pl';
    
  5. or download this
    our $var;
    for $var ( qw(foo bar quux) ) {
        require 'foo.pl';
    }