in reply to Re: Extract last two digits from numbersin thread Extract last two digits from numbers
There is no need for the third parameter there
my $s= '12345'; print substr $s, -2; 45 [download]
Of course, it doesn't hurt either :)