my $text = do { local( @ARGV, $/ ) = $infile ; <> } ;This should locally change @ARGV to contain $infile and load the whole file into $text. Maybe the file is huge and you have just to wait a bit?
In reply to Re: unwanted ARGV in subroutine
by choroba
in thread unwanted ARGV in subroutine
by rizzler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |