Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by molecules (Monk)
on Aug 04, 2010 at 20:32 UTC ( #852965=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v6;
    
    ...
    my %kv4  = "$var4",'LiteralValue';
    
    say :%kv4.perl;
    
  2. or download this
    "kv1" => {"LiteralKey" => "LiteralValue"}
    "kv2" => {"LiteralKey" => "LiteralValue"}
    "kv3" => {"Literalkey" => "LiteralValue"}
    "kv4" => {"LiteralKey" => "LiteralValue"}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-10-02 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (48 votes), past polls