in reply to how can I execute an html file from Perl

You can point the browser of the end user to the file path as /path/to/bowser/browser /path/to/file.html or, for local only connection you can build up a server on the fly to serve the file to the end user browser, like using plackup

plackup -p 5000 -MPlack::App::Directory -e 'Plack::App::Directory->new +({root => q{.}})->to_app'

and point the user browser to http://127.0.0.1:5000 as suggested by YourMother in a thread where many other example of webserver oneliners are shown: Simple http server one-liner for some static files?

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.