Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

[Perl6] Perl 6 discoveries IV, hash access

by holli (Monsignor)
on Oct 04, 2017 at 23:41 UTC ( #1200700=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v6;
    
    ...
    
    say %hash{'a'}; # says A
    say %hash<b>;   # say B
    
  2. or download this
    #most likely not what you want, but prints an undefined warning
    say %hash<$somekey>; 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1200700]
Approved by beech
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-07-19 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (420 votes). Check out past polls.

    Notices?