Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: how to split hash into two arrays

by missingthepoint (Friar)
on Jul 07, 2009 at 08:04 UTC ( [id://777786]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # assume %h is your hash, @c and @d are the 'corresponding arrays'
    @keys=keys %h;@vals=values %h;for($i=0;$i<@keys;$i++){$c[9] = $d[9] = 
    +$i if $keys[$i] eq 'something'}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found