> 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 okoops. I hope pattern matching is not needed to your requirement. Your try is correct. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
