in reply to Cut off beginning lines of a file

If you need to do it in-place rather than by copying the file you could use this:

#! perl -slw use strict; open my $fh, '+<', $ARGV[ 0 ] or die $!; <$fh> while ($.||0) < 32; my $bufsize = tell( $fh ); my( $readPoint, $writePoint ) = ( $bufsize, 0 ); my $buffer; local $/; while( my $read = read( $fh, $buffer, $bufsize ) ) { seek $fh, $writePoint, 0; print $fh $buffer; $writePoint += $read; seek $fh, $readPoint+=$read, 0; } truncate $fh,$writePoint; close $fh;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.