in reply to Re^4: I wrote a script to grep
in thread I wrote a script to grep

You're right. I didn't use strict and warnings this time. I made minimal changes to the original code to make my points. The file handle is called $my_file not because I intended my $file but because the original bareword file handle was MYFILE.

You have a valid point that strictures and warnings should have also been mentioned. That wasn't part of my intent as I scribbled out a response, but maybe it should have been.