in reply to Multiple loop variable in foreach statement

It looks like you're iterating in parallel. Just access them by index:

for my $i (0..$#keys_raw) { $val_raw = $raw58{$keys_raw[$i]}; $val_ref = $ref58{$keys_ref[$i]}; next if ($keys_raw[$i] eq $keys_ref[$i] && $val_raw eq $val_ref); print "$keys_raw[$i] $val_raw $keys_ref[$i] $val_ref\n"; }

Replies are listed 'Best First'.
Re^2: Multiple loop variable in foreach statement
by tc1364 (Beadle) on Oct 12, 2004 at 18:00 UTC
    I sinserely appreciate the help you have provided!