Re: Another one-liner?
[email protected] (Daniel Tiefnig) Wed, 24 Jun 2009 15:38:06 +0200
| Newsgroups | perl.golf |
|---|---|
| Message-ID | <[email protected]> |
Phil Carmody wrote:
> I needed to remove blank-line-separated chunks of code from a text
> file if those chunks contained any lines which were 'too long'.
[...]
> If you think how little it does, it's got to be one-linerable, no?
Should do the trick:
perl -00 -ne'/.{65535}/||print'
lg,
daniel