Help for this page

Select Code to Download


  1. or download this
    my $saved = $_;
    $_ = undef;
    ...
    $_ = $saved;
    
  2. or download this
    my $tmp;
    my $old = \$_;
    *_ = \$tmp;
    ...
    *_ = \$old;
    
  3. or download this
    $ perl -le '$x = 1; $r = \$x; local $x=2; print "$$r $x"'
    1 2
    $