laziness, impatience, and hubris | |
PerlMonks |
Re: Finding the last statement in string of atmost similar patternby Rahul6990 (Beadle) |
on May 06, 2013 at 07:33 UTC ( [id://1032203]=note: print w/replies, xml ) | Need Help?? |
Use the below step: 1. Define your pattern, do not for get to put '()' around the pattern. 2. Open the file. 3. Apply pattern on each line. 4. After reading the entire file heck '$1' variable, the last matched pattern will present in it. For help use this link.
In Section
Seekers of Perl Wisdom
|
|