We don't bite newbies here... much | |
PerlMonks |
Re: Replace first blank line in a text file with headers.by ExReg (Priest) |
on Mar 24, 2016 at 15:34 UTC ( [id://1158729]=note: print w/replies, xml ) | Need Help?? |
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".
In Section
Seekers of Perl Wisdom
|
|