NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
It's in the docs (Score:2)
From "perldoc -f sprintf":
Reply to This
Re:It's in the docs (Score:1)
"Perl will use the count of elements in the array as the format, which is almost never useful."
When would that be useful? I can't think of a single case.
Re:It's in the docs (Score:2)
Re:It's in the docs (Score:2)
It's a good example of getting bitten by an unexpected prototype though...
Hysterical Raisins (Score:2)
Another "print sprintf" vs "printf" surprise I noticed a while ago: printf doesn't honor $\.