in reply to ignore first 5 lines of a file

Another possible solution:
<FILE> for 1..5; while (<FILE>) { # do stuff }
Then you don't need to test $. on each iteration, but that's only a very small savings, if any.