develooper Front page | perl.golf | Postings from June 2009

Re: Another one-liner?

Thread Previous
From:
Daniel Tiefnig
Date:
June 24, 2009 10:43
Subject:
Re: Another one-liner?
Message ID:
4A4265C4.3060805@gmx.at
Eirik Berg Hanssen wrote:
>> I'm probably overlooking something silly, but
>> 
>> perl -O0 -pe's/.{65535,}//'
> 
> Newlines.

Besides that I'm getting "Can't do {n,m} with n > m in regex" for values
greater than 2^15 - 1 here.

br,
daniel

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About