in reply to RE: Localizing Filehandles
in thread Localizing Filehandles

Yes. Additionally you can use the FileHandle module:
use FileHandle; sub Whatever { my $filehandle = new FileHandle; open $filehandle, $file or die "Failed to open $file, $!"; # do stuff. close $filehandle or die "Failed to close $file, $!"; }
But that wasn't my point.

Replies are listed 'Best First'.
RE: RE: RE: Localizing Filehandles
by ahunter (Monk) on Jul 15, 2000 at 00:41 UTC
    I was going to add "which only goes to show that by posting here you find out several other ways to do the same thing", but it seems I forgot.

    Andrew.