The Mad Hatter: Thanks, I'll do that.
blue_cowdawg: I'm writing on windows, but writing for linux (Well, FreeBSD to be quite honest). I'll try anyway to run perl -c on the script.
And about the use strict, warnings and diagnostics pragmas, I'll read more about them and do that also.