Help for this page
sub fooprintf (*$fmt, *@args) { ... } sub barprintf ($fmt, *@args) { ... } ... barprintf($format, @data); #this works barprintf(@both); #this won't work barprintf(*@both); #but this will
fooprintf(localtime); #localtime is called in array context barprintf(localtime); #localtime is called in scalar context