Help for this page

Select Code to Download


  1. or download this
    Global symbol "$var" requires explicit package name at p03.pl line 3.
    Execution of p03.pl aborted due to compilation errors.
    
  2. or download this
    my $var;    # compile time component inserts variable into scratchpad
                # of the scope
    $var = 1;   # run-time component assigns the value
    
  3. or download this
    use strict;
    test();
    ...
      $var++;
      print "var is now '$var'\n";
    }
    
  4. or download this
    var was undef
    var was ''
    var is now '1'