in reply to Odd behavior in hash initialization due to missing parens
printf/sprintf take a list of arguments. In the first case sprintf gobbles up all the remaining items in the hash initialization list (even though the format string doesn't require them). In the second case the list that sprintf sees is constrained by the parens.
Note that => and , (comma) are in essence the same except that => stringizes the item to the left of it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Odd behavior in hash initialization due to missing parens
by thezip (Vicar) on Oct 08, 2007 at 23:04 UTC |