in reply to write to/append a specific line in output file
This is just a thought, but I think that you could use the Tie::File module for this purpose.
You could tie the output file to an array, and then use something like this:
$array[2] .= 'B';
This will append 'B' to the second line of the output file. The documentation states, that the file is not loaded into memory, so this will work even for gigantic files.
regards,
Luke Jefferson
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: write to/append a specific line in output file
by jwkrahn (Abbot) on Aug 18, 2011 at 20:26 UTC | |
by blindluke (Hermit) on Aug 18, 2011 at 20:51 UTC | |
|
Re^2: write to/append a specific line in output file
by aquinom (Sexton) on Aug 18, 2011 at 20:03 UTC |