Re: unhead

Gaal Yahas <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
On Fri, Sep 24, 2004 at 04:49:49PM -0000, Jose Alves de Castro wrote:
> Imagine you want to print a file, but without the first N lines...

All the other solutions are so horrendeously inefficient, performing a
branch every line. Tsk, tsk.

perl -ne 'BEGIN { $p = sub { $p = sub { print } if $. == 4 } } $p->()'

(Or &$p, yes I know.)

PS: For people reading this list (or others) in digest mode, what's a
nice way to make replies to threads without lots of manual editing? I
like to preserve the original subject and author, as well as put in a
correct In-Reply-To: header. I use mutt, FWIW.

-- 
Gaal Yahas <[email protected]>
http://gaal.livejournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.