more useful options | |
PerlMonks |
Re: Take last instance of a stringby ww (Archbishop) |
on Aug 30, 2016 at 17:28 UTC ( [id://1170804]=note: print w/replies, xml ) | Need Help?? |
What have you tried? What docs have you read? We're here to help you learn; NOT to write your code. In the interest of learning, however, see the Tutorials re regular expressions. Alternately (and a very bad plan, usually), capture all the desired phrases to the end of the file (into an array) and then select the last element of the array. (But, again, you'll need to study regexen.). Sorry, we expect SOPW to seek wisdom, not to ask us to do so for them.
In Section
Seekers of Perl Wisdom
|
|