in reply to eof not recognised when applying diamond operator to invocation arguments?
Just in case you're curious... If you wanted to stick with your original code as closely as possible, here's how you'd have to modify it to get it working as desired (I wouldn't recommend it though):
my @filesnames = @ARGV; for my $input_file ( @filesnames ) { eof(); while ( ! eof ) { print scalar <>; } print "=========SEPARATOR: Processing $input_file =========\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: eof not recognised when applying diamond operator to invocation arguments?
by pat_mc (Pilgrim) on Jan 13, 2011 at 09:27 UTC | |
by Anonyrnous Monk (Hermit) on Jan 13, 2011 at 10:12 UTC | |
by pat_mc (Pilgrim) on Jan 14, 2011 at 16:54 UTC |
In Section
Seekers of Perl Wisdom