Hello Anyone!
I have the below script but it doesn't match just the words containing the
letter p.
Enstead I get "And then Joppy had a puppy named soapy"

Is there a way to modify this script a bit for out put  to say;
"Joppy puppy soapy"

Many Thanks!

while (<>){
  print if (m/p/);
}

Juan Amore HPCS ENGINEERING 1-748-8789


-----Original Message-----
From: Bill Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 9:00 AM
To: AMORE,JUAN (HP-Roseville,ex1)
Subject: Re: Do's anyone know of a perl script which prints only
sentence line s containing either a period "." question"?"


On 10/4/01 7:20 PM, "AMORE,JUAN (HP-Roseville,ex1)" <[EMAIL PROTECTED]>
wrote:

> 
> Hello,
> Do's anyone know of a perl script which prints only sentence lines
> containing either a period "." question"?"
> and a "," comma.
> 
> Many Thanks:)
> Just a beginner:)
> JA
> 

 print if /(\.|\,|\?)/g;

-Sx- 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to