in reply to Perl Script to run in web browser
Sounds like you want a web interface for your code. I would look at one of the web framework modules (such as Dancer, Dancer2, Mojolicious). For the menus (like what your existing code is using), it probably would be easiest to go with regular HTML forms and buttons for that part.
If you need to distribute your application, you might find useful information in this blog post (Building Perl stand alone applications with a GUI using Mojolicious and PAR-Packer). Otherwise, it may be better to host in the web application on a server that everyone can access via browser.