in reply to write html code with perl

I'm working in this script, but how can I do for embedding its output into the html page?. Thanks monks

Its simple, create a new file use Path::Tiny qw/ path /; path( '/foo/bar.html' )->spew_utf8( $the_new_html );