Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Anonymous Monk
on Dec 19, 2007 at 17:25 UTC ( #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? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2023-05-28 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?