in reply to Re: Re:{4} how do I line-wrap while copying to stdout?
in thread how do I line-wrap while copying to stdout?

print grep $_, split /(.{1,80})/
I don't like that one. It throws away any line that comes out as "0".

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re:{4} how do I line-wrap while copying to stdout?
by petral (Curate) on Apr 24, 2001 at 01:04 UTC
    Right, changed it back to "/./".

    p
      But since you aren't using /s, you're going to be doing bad things to strings that have newlines. The other solutions are much better.

      -- Randal L. Schwartz, Perl hacker