Paul wrote:
> > >   if (/^everywhere$|^nowhere$/)
> > > Any help is appreciated.
> >
> >     while (<>) { print if /(every|no)where/ }
>
> Are the anchors relevant?
>
>  while(<>) { print if /^(every|no)where$/ }

I've no idea. It's just that it seemed unlikely that the line
would contain only that word! I guess it's just an example
anyway - the real question was about what code to wra
it in.

Rob




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

Reply via email to