Your Mother, of course, in the last few days I have been doing some admin at my webhost and up popped some .pl extensions, followed by key=value params. Thereby instantly contradicting myself. Not meaning to go OT from the main question, as I have similar niggles with understanding how to approach my $worktime interfaces.
Most likely it is a configuration issue, but then we like to look at where is the line between what is the issue in terms of being perl related. Server configuration is not necessarily a perl issue in of itself, but at least in regards to transcribing web documents, being part of a community that can share the info is almost, if not as, important.
Regarding the code snippet you provide here. I think this is one of the things that might help progression with learning the language, just saw Coding in Perl? What support do you need? as I logged. That is, miniature examples of the kind of security issues that we would rather not unintentionally reproduce. But now I am going ot.