Hi guys,
I've recently came back to Perl after "trying" to use it over 20 years ago. Yes I've wasted 20 years of good stuff, that happens.
In the past I mainly used PHP for my web work. Even though I'm pretty fluent in PHP, I would love to switch to Perl instead.
I've found Mason/Mason2 so I can use it pretty similarly than I used PHP, easier learning curve for me it seems.
I've also tested the speed of PHP vs Perl with a simple "print" statement looped 1000 times, some of you may have seen this somewhere online. I was shocked that the Perl5 version ran about 38 times faster than PHP7. Now I'm sure this doesn't mean Perl is faster in every context but still, quite encouraging to me as far as performance goes.
My question to you guys is :
If I want a simple Perl replacement for PHP, is Perl/Mason the best way to go? So far it seems like a really good alternative. I just want to embed Perl tags like PHP does. I don't need anything else too fancy.
I've seen frameworks like Dancer2 and Mojolicious around, but as great as these seem, I'd rather use vanilla Perl do my own, my needs are quite small, I'd rather not use a framework if possible.
Any comments/ideas?
Thanks again.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.