in reply to Re^6: write to Disk instead of RAM without using modules
in thread write to Disk instead of RAM without using modules
The following code reads a file line by line:
my $filename = 'some/filename.txt'; open my $fh, '<', $filename or die "Couldn't read '$filename': $!"; while (<$fh>) { ... }
If you want to store information about a file, do so while reading it line by line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: write to Disk instead of RAM without using modules
by Anonymous Monk on Oct 25, 2016 at 08:36 UTC | |
by Corion (Patriarch) on Oct 25, 2016 at 08:37 UTC | |
by Anonymous Monk on Oct 25, 2016 at 09:06 UTC | |
by Corion (Patriarch) on Oct 25, 2016 at 09:08 UTC | |
by Anonymous Monk on Oct 25, 2016 at 10:33 UTC | |
by Laurent_R (Canon) on Oct 25, 2016 at 15:55 UTC |