(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 ().
In reply to Re: Re: Re: Re: Re: Why does it return 0?
by ysth
in thread Why does it return 0?
by mAineAc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |