in reply to
Last Letters
My day for playing with substr
substr($string, -5, 4);
[download]
Negative numbers count from the end of the string for position. Note that this only works if you have a 4 digit number with another character on the end.
Comment on
Re: Last Letters
Download
Code
In Section
Seekers of Perl Wisdom