in reply to Re: Print from array element to another array element
in thread Print from array element to another array element
Hi Loops
I used the 'say' feature and it works correctly. My next question is- How do I lookup from one element in a array to another one?
For instance the word "food" is a element in a hash. I want to lookup and if the combined elements of my array exists in the hash it should be printed
I tried this-
if (exists $hash{@array[3..$end]}) { say @array[3..$end]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Print/Lookup from array element to another array element
by choroba (Cardinal) on Apr 07, 2013 at 09:59 UTC | |
|
Re^3: Print/Lookup from array element to another array element
by RichardK (Parson) on Apr 07, 2013 at 11:53 UTC | |
|
Re^3: Print/Lookup from array element to another array element
by Anonymous Monk on Apr 07, 2013 at 10:02 UTC |