my @array = ('app', 'Oracle', 'EPDMCA', 'Oracle' ,'EPZXC'); foreach my $element ( @array ) { if ($element eq "Oracle") { print "$element found\n"; # However what I realy need is the next Element after Oracle # e.g # EPDMCA # EPZXC } }