http://www.perlmonks.org?node_id=22530


in reply to Localizing Filehandles

...unless you're using Perl 5.6, in which case:
open my $fh, "<foo.txt";
and similar now work (apparently, I've never tried it). And of course, there's always IO::Handle & friends.

Andrew.