I just want to embed Perl tags like PHP does.
I'd rather not use a framework if possible.
I want a simple Perl replacement for PHP.
This is what the OP wants. It may not be what you want, but it is what the OP wants. Give people what they want:
- Embed Perl tags.
- Not a framework.
- Simple.
use Markup::Perl;
<html>
<body>
<p>
Your "lucky number" is
<i><perl> print int rand 10 </perl></i>
</p>
</body>
</html>
Dear Monks,
Please do not downvote and censor this node for giving OP a correct answer to the question they asked about a capability they want from Perl. That attitude is why something as bad as PHP utterly devastated Perl's dominance of web programming. Here we are a few decades later and you guys still refuse to give people what they want!
Love, Anonymous