Very nicely done. I use Perl in my everyday job, and its nice to see that some people still know how to write good Perl.
You should have use strict; use warnings; then you would have noticed the my $fh and the $io->getline error
Dammit, you're right. I was working in a buffer without perl instrumentation enabled because i was composing a comment, not a script. Now i can't edit the comment anymore. :/
and
better: