Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to juggle between two arrays that are not same size

by Anonymous Monk
on Dec 19, 2007 at 17:25 UTC ( [id://657923]=note: print w/replies, xml ) Need Help??


in reply to How to juggle between two arrays that are not same size

there are probably faster solutions, but if your arrays don't get too large nested loops would be acceptable:
foreach $el (@Fullrecord) { @splitarray=split(/\_/,$el); foreach $nameel (@Names) { push (@DesiredRecord, $nameel) if ($nameel eq $splitarray[0]); } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found