Welcome to the Monastery | |
PerlMonks |
Re: Extracting a chapter from text fileby bigj (Monk) |
on Apr 15, 2014 at 14:43 UTC ( [id://1082351]=note: print w/replies, xml ) | Need Help?? |
You simply miss a g modifier on your regexp.
Without in @finds, only the first match is inside, withit all matches will be in.
Then you can just print $finds[1] and you will get what you want.
Greetings,
In Section
Seekers of Perl Wisdom
|
|