http://www.perlmonks.org?node_id=1226137


in reply to Determine if array value in string results

Can you show us the code that you have tried? The code thats not working?

What it sounds like to me is that you are trying to loop through an array with 900+ elements and find the ones that match "valuen".

use strict; use warnings; my @array = qw(valuen valued valuec valueq values); for (@array) { if (/valuen/) { print; } else { print ";"; } }