Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Print/Lookup from array element to another array element

by choroba (Canon)
on Apr 07, 2013 at 09:59 UTC ( #1027347=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Print/Lookup from array element to another array element
in thread Print from array element to another array element

The keys in a hash are always strings. You cannot use an array slice as a hash key. You have to join the list to form a string:

exists $hash{ join q(), @array[3 .. $end] }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: Print/Lookup from array element to another array element
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-07-05 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls