[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Grep help

On Sun, Jun 20, 1999 at 11:30:28AM -0400, Allan Greenier wrote:
> 	if ($searchItem =~ /$modelLabel/i){
> 		print "Match with $searchItem: $modelLabel\n";

Your search appears to be backwards.  You are searching for the label
within the search string, but you want to search for the search string
within the model label.

      if ($modelLabel =~ /$searchItem/i){


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org