On Oct 19, K.Moeng said:
The problem got solved by if ($msg =~ /roam\s*act/i)
this will allow you to get the whole word without space or take it with
space.
though when you query you have to put the words under " ".
Well, yes. Running your program as
perl myprog.pl roam act
is the same as
perl myprog.pl roam act
both of which create TWO arguments, one 'roam', and the other 'act'.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>