Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Hash key composition with a comma?

by mpersico (Monk)
on Mar 16, 2018 at 20:09 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found