Are you sure "%4.4d" is legal? (Update: perlfunc says it's only legal for floating point formatters.) Using a proper formatting string, it works fine for me in ActivePerl 5.6.1 build 633:
>perl -le "printf('%04d', '42a');" 0042
In reply to Re: printf numification
by ikegami
in thread printf numification
by YuckFoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |