Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 exploiting the Monastery: (5)
As of 2014-07-14 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (254 votes), past polls