in reply to peeling the top 10 lines from a file

try ...
use strict;
and you'll see that you're missing a $ somewhere
---
my name's not Keith, and I'm not reasonable.