<?xml version="1.0" encoding="windows-1252"?>
<node id="853111" title="Re^5: Perl 6, defining a hash with interpolated string" created="2010-08-05 07:53:04" updated="2010-08-05 07:53:04">
<type id="11">
note</type>
<author id="808941">
molecules</author>
<data>
<field name="doctext">
Yes that is correct. 

&lt;code&gt;
my $name='Larry';
my $pair = :$name;
say $pair.perl;
&lt;/code&gt;

Outputs:
&lt;code&gt;
"name" =&gt; "Larry"
&lt;/code&gt;

&lt;BR&gt;
&lt;BR&gt;

UPDATE:&lt;BR&gt;
This is especially useful for named parameters in subroutine declarations.
&lt;BR&gt;
&lt;BR&gt;
For example:

&lt;code&gt;
use v6;

foo(  B =&gt; 'there',A =&gt; 'howdy');

sub foo(Str :$A, Str :$B){
        say "Named parameter A is '$A'";
        say "Named parameter B is '$B'";

}
&lt;/code&gt;</field>
<field name="root_node">
852900</field>
<field name="parent_node">
852975</field>
</data>
</node>
