in reply to perl scrpt from html page
You can have a Perl process acting as web server and listening to a dedicated port on localhost.
I recommend using the mojolicious framework its lightweight and comes with a built in server and scales well if you decided to need more features.
See https://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#Hello-World fur a start.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In Section
Seekers of Perl Wisdom