DCPM: theo's reply

Steve Marvell steve at fysh.org
Tue Jul 23 11:37:06 CDT 2002


From: Theo Zourzouvillys <theo at anlx.net>

[A non-member address]

On Tuesday 23 July 2002 11:41 am, Matthew Browning wrote:
>                                 right   =>      $array2[0] },
>                         {       left    =>      $array1[1],
>                                 right   =>      $array2[1] },
>                         {       left    =>      $array1[2],
>                                 right   =>      $array2[2] },
>
> ...and so forth,
>
>

if i understand the question right... though there are a million ways to do it 
;) this is one of them...

die "Arrays are not equal\n" if ($#array1 != $#array2)

push(@{$edit_vars{values}}, {left => $array1[$_], right => $array2[$_]}) 
  for (0 .. $#array1);


> But that is pretty inelegant and, while I *know* it to be wrong, I am
> afraid I can't see the Right Thing here, perhaps as a result of recent
> nocturnal excesses.




More information about the Devoncornwall-pm mailing list