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]);
In reply to Re: How to cut strings from the end
by b10m
in thread How to cut strings from the end
by Bharath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |