Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've got 3 elements in each array1 and array2. They act as tables in a database with a one to many relationship. There are unique values in array1 and duplicate values in array2. So for every $id in array1 there are multiple $id's in array2.
Now that I've got the arrays defined and I can get the values by doing
foreach (@array1) { ($id,$name,$ref) = split( /,/, $_); }
foreach (@array2) { ($id,$name,$ref) = split( /,/, $_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: @array1 vs @array2
by mikfire (Deacon) on Mar 19, 2001 at 22:11 UTC | |
by Anonymous Monk on Mar 20, 2001 at 00:53 UTC | |
by mikfire (Deacon) on Mar 20, 2001 at 06:56 UTC | |
by Anonymous Monk on Mar 19, 2001 at 23:59 UTC | |
by Anonymous Monk on Mar 20, 2001 at 00:26 UTC | |
|
Re: @array1 vs @array2
by davorg (Chancellor) on Mar 19, 2001 at 21:59 UTC | |
|
Re (tilly) 1: @array1 vs @array2
by tilly (Archbishop) on Mar 19, 2001 at 22:01 UTC | |
|
Re: @array1 vs @array2
by bjelli (Pilgrim) on Mar 19, 2001 at 21:52 UTC | |
by Anonymous Monk on Mar 19, 2001 at 22:23 UTC | |
by mikfire (Deacon) on Mar 19, 2001 at 22:47 UTC |