in reply to Re: Extract last two digits from numbers
in thread Extract last two digits from numbers

There is no need for the third parameter there

my $s= '12345'; print substr $s, -2; 45

Of course, it doesn't hurt either :)


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!