in reply to How to cut strings from the end
Of course the "right answer" is already given, yet if you want to go crazy, you might also abuse split for this ;-)
my $string = 'monk1223'; print ((split "", $string)[$#a-2..$#a]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to cut strings from the end
by izut (Chaplain) on May 30, 2006 at 13:25 UTC | |
by japhy (Canon) on May 30, 2006 at 14:05 UTC |