in reply to Re: strip until blank line
in thread strip until blank line

Should this regex include whitespace?
while (<INPUT>) { next if (1 .. /^\s*$/); # yada yada }
Also, your example reminds me of some kind of tutorial or perldoc reference -- is that right? If so, could you point me to it? This is a slick construction.

Replies are listed 'Best First'.
Re: Re: Re: strip until blank line
by Fastolfe (Vicar) on Nov 24, 2000 at 00:32 UTC
    Yah, it should. I think this behavior is documented in perlop.. look for the "range operator" (..) in a scalar context.