K.Moeng <[EMAIL PROTECTED]> asked: > I have rephrased my question from yesterday, > > I want to be able to ignore the white space in between ROAM > and ACT that is return the query as ROAM ACT without falling > to the else statement. > > $msg = $ARGV[0]; > > $msg =~ s/\"/' /ig;
You do not have to escape the double quote here. > $found = 0; > > if ($msg =~ /roam act/i) if ($msg =~ /roam\s*act/i){ matches roamact, roam act, roam act, ... HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>