Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Replace first blank line in a text file with headers.

by neilwatson (Priest)
on Mar 24, 2016 at 14:47 UTC ( #1158722=note: print w/replies, xml ) Need Help??


in reply to Replace first blank line in a text file with headers.

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
watson-wilson.ca

  • Comment on Re: Replace first blank line in a text file with headers.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1158722]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-07-21 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (449 votes). Check out past polls.

    Notices?