Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Switching from PHP to Perl/Mason

by erickp (Sexton)
on Feb 06, 2023 at 21:53 UTC ( [id://11150200]=note: print w/replies, xml ) Need Help??


in reply to Switching from PHP to Perl/Mason

Actually, just found out I can simply "print" or "say" whatever html I want straight out to the browser...I don't think I'll need any libraries to help me do that. Pure vanilla Perl, love this. Thanks.

Replies are listed 'Best First'.
Re^2: Switching from PHP to Perl/Mason
by Bod (Parson) on Feb 06, 2023 at 23:37 UTC
    I can simply "print" or "say" whatever html I want straight out to the browser

    You can indeed. You can even do it with Here Documents and there are times when that is appropriate...

    But - and it's a big but - it would be time well spent to get to grips with one of Perl's many templating systems. Thanks to The Monastery, I took the plunge a couple of years back and have no regrets for the time invested. Personally, I use Template but there are plenty of others to choose from.

Re^2: Switching from PHP to Perl/Mason
by marto (Cardinal) on Feb 07, 2023 at 09:17 UTC

    If you grow beyond your current requirements, say more complicated use of HTML/CSS/JS you may want to consider a templating engine or framework. I use Mojolicious, it has a powerful and easy to use rendering methods which make life so much easier.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2025-07-19 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.