omegaweaponZ has asked for the wisdom of the Perl Monks concerning the following question:
#$file contents below.... #Line1 - Blah #Line2 - Blah #Line3 - Blah #Line4 - Blah #Line5 - Blah tie @file_lines, 'Tie::File', $file or die; $file_lines[3] = "This is my new record on line 3,\n"; untie @file_lines or die "$!"; #$file contents now has (on no format text editors)... #Line1 - Blah #Line2 - Blah #Line3 - This is my new record on line3,Blah #Line4 - Blah #Line5 -
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tie::File Newline Issue
by Athanasius (Archbishop) on Jan 30, 2014 at 16:19 UTC | |
by Lotus1 (Vicar) on Jan 30, 2014 at 20:29 UTC | |
by omegaweaponZ (Beadle) on Jan 30, 2014 at 16:34 UTC |