Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Hash key composition with a comma?

by mpersico (Scribe)
on Mar 16, 2018 at 20:09 UTC ( #1211078=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash;
    my $foo = 'hello';
    my $bar = 'world';
    ...
    $hash{ $foo, $bar, $baz } = '##eek what magic is this?';
    print $hash{"$foo\x{1c}$bar\x{1c}$baz"};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1211078]
Approved by LanX
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2019-10-18 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?