Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Search an array for a pair of matching elements

by gothic_mallard (Pilgrim)
on Oct 26, 2004 at 14:34 UTC ( [id://402606]=note: print w/replies, xml ) Need Help??


in reply to Search an array for a pair of matching elements

This sounds a little like a homework question which tend to be frowned upon here.

Can you explain the logic behind this search (it's application in the real world etc). Also posting any work you've already attempted would be helpful. You're much more likely to get replies here if you say "I've tried X, Y and Z but can't understand why it doesn't work" rather than "do this for me".

All I'd say in the mean time is read up on for loops which should put you on (one of the) right track to solving your question.

--- Jay

All code is untested unless otherwise stated.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-26 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found