Re: white space between roam and act

2005-10-19 Thread Jeff 'japhy' Pinyan
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 a

Re: white space between roam and act

2005-10-19 Thread K.Moeng
PROTECTED]> To: "Suvajit Sengupta" <[EMAIL PROTECTED]> Cc: "K.Moeng" <[EMAIL PROTECTED]>; "beginners perl" Sent: Wednesday, October 19, 2005 2:45 PM Subject: Re: white space between roam and act > On Oct 19, Suvajit Sengupta said: > > > To ig

Re: white space between roam and act

2005-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, Suvajit Sengupta said: To ignore the white space in between ROAM and ACT use /x modifier of Perl RE to extend your pattern's legibility by permitting whitespace and comments. Hope that will serve your purpose. Instead of if ($msg =~ /roam act/i) Use if ($msg =~ /roam act/ix) Y

Re: white space between roam and act

2005-10-19 Thread JupiterHost.Net
K.Moeng wrote: Hello again, Hello, Please turn of read receipts when posting to a list, thanks. I have rephrased my question from yesterday, And are still not using strict or warnings, shame shame... I want to be able to ignore the white space in between ROAM and ACT By "the white sp

Re: white space between roam and act

2005-10-19 Thread K.Moeng
- Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Wednesday, October 19, 2005 9:29 AM Subject: Re: white space between roam and act > Beau E. Cox wrote: > > > > Whitespace is \s ( by default ( |\t|\n) )

Re: white space between roam and act

2005-10-19 Thread John W. Krahn
Beau E. Cox wrote: > > Whitespace is \s ( by default ( |\t|\n) ) Actually the \s character class is the same as [ \t\n\r\f]. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: white space between roam and act

2005-10-18 Thread Thomas Bätzler
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 hav

Re: white space between roam and act

2005-10-18 Thread Suvajit Sengupta
Hi, To ignore the white space in between ROAM and ACT use /x modifier of Perl RE to extend your pattern's legibility by permitting whitespace and comments. Hope that will serve your purpose. Instead of if ($msg =~ /roam act/i) Use if ($msg =~ /roam act/ix) Regards, Suvajit K.Moeng wrote

Re: white space between roam and act

2005-10-18 Thread Elie De Brauwer
Elie De Brauwer wrote: K.Moeng wrote: Hello again, 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; $found = 0;

Re: white space between roam and act

2005-10-18 Thread Beau E. Cox
Hi K.Moeng - At 2005-10-18, 20:00:28 you wrote: >Hello again, > >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/\"/'

Re: white space between roam and act

2005-10-18 Thread Elie De Brauwer
K.Moeng wrote: Hello again, 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; $found = 0; if ($msg =~ /roam act/i)

white space between roam and act

2005-10-18 Thread K.Moeng
Hello again, 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; $found = 0; if ($msg =~ /roam act/i) { $name = 'ACTiv