There is no need for the third parameter there
my $s= '12345'; print substr $s, -2; 45
Of course, it doesn't hurt either :)
In reply to Re: (2) Extract last two digits from numbers
by BrowserUk
in thread Extract last two digits from numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |