in reply to Replace first blank line in a text file with headers.
Assuming you make the changes suggested by neilwatson, another thing that might not go as expected is if you have blank lines further down in the file.
while( my $line = <$fh_in> ) {will cause any blank line, not just the first one, to be replaced by "Name, City, State, Zip".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace first blank line in a text file with headers.
by Laurent_R (Canon) on Mar 24, 2016 at 18:33 UTC | |
by Marshall (Canon) on Mar 24, 2016 at 23:04 UTC | |
by ExReg (Priest) on Mar 24, 2016 at 19:52 UTC | |
by rementis (Beadle) on Mar 24, 2016 at 21:22 UTC |