Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Perl6 dot syntax (for methods?)

by Ven'Tatsu (Deacon)
on Feb 28, 2005 at 16:26 UTC ( [id://435102]=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://435102]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found