
ah crap .. that's right :) this should solve it: (or you get the leading-zeroless number or a zero) (my $int) = $possible_oct =~ s/^0+(\d+)|(\d*)/$1/; You can have warnings or errors thrown whenever there's a leading zero in a number used, with: http://search.cpan.org/~dconway/Leading-Zeros-0.0.2/lib/Leading/Zeros.pm -Kenny On Mon, 18 Aug 2008, Thomas Abeel wrote:
A leading zero normally denotes octal notation, so 0012 would be 10 in decimal notation. Although I have no idea whether perl even knows about octal notation
So in this case it would be 10>11, which won't work
regards, Thomas
lieven sterck wrote:
does anybody knows whether perl can deal with leading zero in number context?
eg. 0012 > 11 , will this work?
thx, L. PS. is the binari exclusively dutch??
--