Help for this page

Select Code to Download


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