develooper Front page | perl.perl5.porters | Postings from March 2013

[perl #84680] POSIX::isdigit() returns 1 for the empty string

Thread Next
From:
Frank Meyers via RT
Date:
March 25, 2013 19:25
Subject:
[perl #84680] POSIX::isdigit() returns 1 for the empty string
Message ID:
rt-3.6.HEAD-28177-1364142170-111.84680-14-0@perl.org
$ python -c 'print "".isdigit()'
False
$ php -r 'var_dump(ctype_digit(""));'
bool(false)
$ perl -MPOSIX -e 'print isdigit(""), "\n"'
1
$ 

WTF?


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