Muthukumar wrote:

It is correct. You can try as,

# echo " hi this is a room ok" | perl -ne 'if ( /\s*.*\sroom.*\s*/ ) {
s/ room//;}print;'
# hi this is a ok

Hi
you the man
I cant believe I was sooo stupid in not thinking of your solution.

thanks again

Brent Clark

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to