more useful options | |
PerlMonks |
Re^2: Simple way to split on last match?by aturtle (Novice) |
on Aug 05, 2012 at 20:36 UTC ( [id://985570]=note: print w/replies, xml ) | Need Help?? |
Hey thanks!
my ($last) = (split(/--/, $line))-1;
Works
The -1 is what is significant in getting the last one i guess.
-Turtle
In Section
Seekers of Perl Wisdom
|
|