Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by choroba (Abbot)
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 avoiding work at the Monastery: (4)
As of 2014-12-28 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls