Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Opening files in 5.004 and 5.8

by gaal (Parson)
on May 11, 2007 at 21:27 UTC ( [id://615017] : note . print w/replies, xml ) Need Help??


in reply to Opening files in 5.004 and 5.8

Lexical filehandles were introduced in 5.6, IIRC. You can say

my $handle = \*RPT;

and pass it to a subroutine in versions prior to that, though. close and friends work with that.