Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
P is for Practical
 
PerlMonks  

Re^2: Returning indices with same values for array within hash.

by LanX (Abbot)
on Nov 10, 2013 at 15:55 UTC ( #1061910=note: print w/ replies, xml ) Need Help??


in reply to Re: Returning indices with same values for array within hash.
in thread Returning indices with same values for array within hash.

yes, but you don't really need the arrow after the first nesting level! =)

DB<108> %matrix = (NI => [1 ,1 ,3 ,4] ); => ("NI", [1, 1, 3, 4]) DB<109> $matrix{NI}[3] => 4

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re^2: Returning indices with same values for array within hash.
Download Code
Re^3: Returning indices with same values for array within hash.
by Kenosis (Priest) on Nov 10, 2013 at 16:51 UTC

    Good point!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061910]
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 2014-04-19 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls