in reply to Re^4: Perl 6, defining a hash with interpolated string
in thread Perl 6, defining a hash with interpolated string
Outputs:my $name='Larry'; my $pair = :$name; say $pair.perl;
"name" => "Larry"
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'"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl 6, defining a hash with interpolated string
by Mr_Micawber (Beadle) on Aug 05, 2010 at 12:41 UTC | |
by molecules (Monk) on Aug 05, 2010 at 21:07 UTC |