B
Bob Walton
Perl: Activestate build 806 (5.8.0)
OS: Windows 98SE
I note that:
perl -e "printf '%0d %0d',1,2;"
gives: 1 2
but that:
perl -e "printf '%d %d',1,2;"
gives: d
and that:
perl -e "printf '%d %0d',1,2;"
gives: 0d
and that:
perl -e "printf '%d %garbage',1,2;"
gives: garbage
Does anyone else observe this behavior and, if so, have an explanation?
I note that Perl 5.6.1 for Cygwin (B20) does not exhibit this problem.
Thanks.
OS: Windows 98SE
I note that:
perl -e "printf '%0d %0d',1,2;"
gives: 1 2
but that:
perl -e "printf '%d %d',1,2;"
gives: d
and that:
perl -e "printf '%d %0d',1,2;"
gives: 0d
and that:
perl -e "printf '%d %garbage',1,2;"
gives: garbage
Does anyone else observe this behavior and, if so, have an explanation?
I note that Perl 5.6.1 for Cygwin (B20) does not exhibit this problem.
Thanks.