in reply to Extract last two digits from numbers
If you know that your numbers are numbers, then there's no need to use a regex, just math.
my $number = '0234'; $number %= 100; print $number; 34
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract last two digits from numbers
by Abigail-II (Bishop) on Jan 06, 2004 at 11:19 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2004 at 11:24 UTC |