in reply to Re: File Reading and Closing confusion
in thread File Reading and Closing confusion
while (defined($_ = <FH>)) { ... }
my @lines = do { local @ARGV = $file; <> };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File Reading and Closing confusion
by shmem (Chancellor) on Aug 09, 2010 at 00:23 UTC | |
by repellent (Priest) on Aug 09, 2010 at 03:49 UTC | |
by shmem (Chancellor) on Aug 09, 2010 at 09:30 UTC | |
by repellent (Priest) on Aug 09, 2010 at 15:37 UTC |