Perl Monk, Perl Meditation | |
PerlMonks |
Re: Caputre Entire Line Not Just Findby kennethk (Abbot) |
on Jul 13, 2016 at 16:32 UTC ( [id://1167707]=note: print w/replies, xml ) | Need Help?? |
If you want to grab everything via capture, you'll need to match everything:
Note that . matches every character but a newline, so there's no need to worry about chomping. See s in Modifiers in perlre. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|