my $searchThisLine = $lastname . " " . $firstname . " " . $alias . " " . $phPrefix . " " . $phSuffix . " " . $location . " " . $deptdivcodeslash . " " . $line[16] . " " . $contractorfirm . " " . $nospacelastname . " " . $lanID; foreach my $searchArg(@argument) { print "
Searching $searchArg in $searchThisLine
"; #search for searchArg in searchThisLine #true means the searchArg was found - so continue processing line #false means the searchArg was not found - so break loop if ($searchThisLine =~ m/$searchArg/i) { print "
true
"; #this shouldn’t be happening when the user searches pl } else { print "
false
"; #set the search match flag to false # and call last so this iteration will stop $bSearchMatch = "false"; last; } ...