The stupid question is the question not asked | |
PerlMonks |
Re: Replace first blank line in a text file with headers.by neilwatson (Priest) |
on Mar 24, 2016 at 14:47 UTC ( [id://1158722]=note: print w/replies, xml ) | Need Help?? |
Your if statement appears to match the beginning of a line followed by none white space (^\S). Did you mean ^\s* ? or the more accurate \A\s*\Z.
Neil Watson
In Section
Seekers of Perl Wisdom
|
|