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

Re: Using an element in a Hash of Arrays to access the key

by johngg (Canon)
on Mar 25, 2017 at 17:35 UTC ( [id://1185934]=note: print w/replies, xml ) Need Help??


in reply to Using an element in a Hash of Arrays to access the key

Not answering your query, but you can save some typing when initialising your arrays by using qw (see Quote Like Operators).

my @array1 = qw{ one two three four five }; my @array2 = qw{ banana pear apple };

I hope this is helpful.

Cheers,

JohnGG

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1185934]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (11)
As of 2024-04-18 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found