Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > processing rela...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 10643 of 12002
Post > Topic >>

processing related elements in an array

by nickralton@[EMAIL PROTECTED] (Nickralton@[EMAIL PROTECTED] ) Feb 13, 2008 at 04:23 PM

Hey,  I hope someone can help me in calculating this:

My goal is to pass an array, @[EMAIL PROTECTED]
 = ("A", "C") to a subroutine, and
using another array, @[EMAIL PROTECTED]
 = ("B.aID = A.ID", "D.ID = A.dID", "C.ID =
B.cID", "E.cID = C.ID"), use that to then
simplify @[EMAIL PROTECTED]
 to get @[EMAIL PROTECTED]
 = ("B = A", "D = A", "C = B", "E = C"),
and then
find any related elements in @[EMAIL PROTECTED]
 to get @[EMAIL PROTECTED]
 = ("A = B = C", "B = C
= E", "D = A = B"),
-------
ie,

find what A equals,
A = B
A = D

find what C equals,
C = B
C = E

find any similarities,
both contain B, so,
return A, B, C

-------

I apologize ahead for any confusions/headaches, if you can help me,
that would be great!
 




 4 Posts in Topic:
processing related elements in an array
nickralton@[EMAIL PROTECT  2008-02-13 16:23:44 
Re: processing related elements in an array
rob.dixon@[EMAIL PROTECTE  2008-02-14 12:00:23 
Re: processing related elements in an array
nickralton@[EMAIL PROTECT  2008-02-14 06:33:51 
Re: processing related elements in an array
halfcountplus@[EMAIL PROT  2008-02-14 19:06:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 14:46:17 CDT 2008.