in reply to Re: Directly assigning Filehandle
in thread Directly assigning Filehandle

Unfortunately, the three argument open is not backwards compatible with 5.6.x. OTOH,
open my $fh,"< $name" or die "can't open $name; $!";
would work.

Replies are listed 'Best First'.
Re^3: Directly assigning Filehandle
by chromatic (Archbishop) on May 04, 2005 at 16:18 UTC

    5.6.x introduced both lexical filehandles and three-argument open.

      oops, you're right. I tested it before posting, but I must have had a mistake in my test.