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

Re^6: Hash key composition with a comma?

by choroba (Bishop)
on Mar 18, 2018 at 09:46 UTC ( #1211179=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $k1a = "a$;b";
    my $k1b = 'c';
    ...
    $multi{$k2a, $k2b} = 2;
    
    print $multi{$k1a, $k1b};  # 2!!
    
  2. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2019-10-19 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?