in reply to Accessing keys through values

$c5 is just $a2[$i+4] so the corresponding key is just $index[$i+4], right?

Update: Since the only thing you ever print out is $c5, you can

$c4=$a2[$i+3]; $c5=$a2[$i+4]; $i5 = $index[$i+4]; # This is new $c6=$a2[$i+5];
and then your output might be:
{ $peak=$c5; print "$i5 = $peak\n"; }

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Accessing keys through values
by cybersmithuk (Initiate) on Apr 26, 2005 at 12:08 UTC
    Yes Roy, you are correct...
      Thank you very much everyone. You all have provided me excellent ideas. Hopefully, in future also you will be providing me the help whenever I need.