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 reply to Re: Replace first blank line in a text file with headers.
by ExReg
in thread Replace first blank line in a text file with headers.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |