in reply to String Matching
if($line2 =~ /[HAVE\s(.*)]/){ my @array = split(/,/, $2); foreach my $num(@array){ print $num."\n"; } } [download]