in reply to Re: Re: Re: Re: Why does it return 0?
in thread Why does it return 0?
(printf outputs directly, sprintf returns a formatted string).$ perl -we'printf "%b", 123' 1111011
Looks like your code above will give undef for 0; I think that could be fixed by changing your while () {} do a do {} while ().
|
|---|