in reply to Find Element of array but use the next Element

See perlintro, use
for my $ix ( 0 .. $#array ) { if( ... ){ print $array[ $ix + 1 ];