Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
First explicit filehandling:
Now, anonymous filehandling:for my $fname (@ARGV) { open(IN, $fname); print while <IN>; close IN; }
All candor shared would be greatly appreciated.print while <>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: anonymous filehandes?
by toolic (Bishop) on Jul 09, 2007 at 16:05 UTC | |
by Anonymous Monk on Jul 09, 2007 at 16:18 UTC | |
by dsheroh (Monsignor) on Jul 09, 2007 at 16:53 UTC | |
by Fletch (Bishop) on Jul 09, 2007 at 17:18 UTC | |
|
Re: anonymous filehandes?
by ides (Deacon) on Jul 09, 2007 at 16:01 UTC | |
by Anonymous Monk on Jul 09, 2007 at 16:10 UTC | |
by grinder (Bishop) on Jul 09, 2007 at 17:21 UTC |