... and also take a look at
CGI::Application for the dispatch mechanism which it provides that would offer a much more discrete and modular separation of execution elements. Even if the
CGI::Application is not deployed within the final application, much of the structure and layout of the script provided for review could be better addressed using some of the techniques employed within this module.
(I have also posted a review on the CGI::Application module previously on this site here).
perl -le "print+unpack'N',pack'B32','00000000000000000000001010000010'"