Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^6: Perl 6, defining a hash with interpolated string

by Mr_Micawber (Beadle)
on Aug 05, 2010 at 12:41 UTC ( [id://853121]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Perl 6, defining a hash with interpolated string
in thread Perl 6, defining a hash with interpolated string

Thanks, that clears a lot up!
  • Comment on Re^6: Perl 6, defining a hash with interpolated string

Replies are listed 'Best First'.
Re^7: Perl 6, defining a hash with interpolated string
by molecules (Monk) on Aug 05, 2010 at 21:07 UTC


    Or to be even more concise, use the notation you showed earlier:
    use v6; foo( :B<there>, :A<howdy> ); sub foo(Str :$A, Str :$B){ say "Named parameter A is '$A'"; say "Named parameter B is '$B'"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2024-04-23 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found