in reply to unwanted ARGV in subroutine
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?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: unwanted ARGV in subroutine
by runrig (Abbot) on Oct 29, 2012 at 22:19 UTC | |
by perl_walker (Novice) on Oct 30, 2012 at 07:06 UTC | |
by Anonymous Monk on Oct 30, 2012 at 07:10 UTC |
In Section
Seekers of Perl Wisdom