Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by choroba (Chancellor)
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] }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027347]
help
Chatterbox?
[ambrus]: Corion: I didn't want to start this particular computer up, I took this one away so that I can put the other computer I want to start up in its place, but that probably doesn't make much of a difference.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-01-16 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.