develooper Front page | perl.perl5.porters | Postings from February 2011

Re: [perl #84680] perlbug AutoReply: POSIX::isdigit() returns 1 forthe empty string

Thread Next
From:
Robert Lang
Date:
February 25, 2011 02:05
Subject:
Re: [perl #84680] perlbug AutoReply: POSIX::isdigit() returns 1 forthe empty string
Message ID:
4D66D4BB.4050603@cg.cjb.net
"Returns true when all the bytes in the scalar are values in the
digits range" should read "Returns true *if and only if* all the bytes 
in the scalar are values in the digit range". Anything else is 
counter-inutitive given the name isdigit.

Shouldn't be too hard to initialise RETVAL = len ? 1 : 0 or something.

BTW, I didn't receive any mail from your RT when you replied.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About