On Nov 8, Glenn Cannon said:
>if (length($now[5] % 100) == l)
You've a got an ell on the right-hand side, not a one. In numeric
context, that's a zero. No number has a length of zero.
And generally, when checking positive integers, you use something like
if ($n < 10) { ... }
instead of
if (length($n) == 1) { ... }
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]