Next Tricks of the Wizards 131

Local Effects

        { local *F = \&VeryLongName::SomeFunction;
          F(...);
        }
        { local $| = 1;
          $rc = print $self "";
        }
        { local $/; $code = <$fh> }
        { local chdir $DIR; 
          ...
        }
        # Old directory is restored here


Next Copyright © 2003 M. J. Dominus