Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Nested Cycle?

by jethro (Monsignor)
on Mar 02, 2012 at 16:26 UTC ( #957510=note: print w/ replies, xml ) Need Help??

in reply to Nested Cycle?

Is this homework for school?

The most complex part of your problem is: You have two arrays and you want to extract only those properties of the first array that are also in the second array. Write a subroutine that accepts two array references as parameters. In that subroutine loop through the first array and for each property search the second loop (hint: grep() is good for this).

When you have that subroutine written, the rest is easy: Just write a main routine that gets the two array references and calls the subroutine

Comment on Re: Nested Cycle?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-11-27 10:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (724 votes), past polls