in reply to Delete the first line of a file ?

Here's how I would remove the first line:
perl -i.bak -ne 'print if $. > 1'
and here's how I would remove the first and last line:
perl -i.bak -ne 'print $prev if $. > 2; $prev=$_' test1