* Frank Meyers via RT (perlbug-comment@perl.org) [130325 19:26]: > $ python -c 'print "".isdigit()' > False > $ php -r 'var_dump(ctype_digit(""));' > bool(false) > $ perl -MPOSIX -e 'print isdigit(""), "\n"' > 1 > $ > > WTF? Yes, the documentation is flawed in many ways. New documentation is waiting for acceptance. The actual implementations is: "true if all bytes are digits in ASCII". Useless function, and true with zero characters. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.netThread Previous | Thread Next