Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Embeded Perl

by IlyaM (Parson)
on Dec 20, 2001 at 00:45 UTC ( [id://133261]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Code Critique
in thread Code Critique

I know that if separating code from content is an issue, then wouldn't it be simpler to move on to Mason? However, I'm not particular fan of this either since many Mason scripts I looked at appeared to be quite a mess.

With embeded Perl it is very easy to write HTML/Perl pages which look like a mess. It requires some self-dicpline to control use of Perl in templates. But it is possible to do it in right way (put business logic in modules, use Perl code in templates only to produce output, separate big sections of Perl and HTML). There exist quite good examples of HTML::Mason code: sources of www.masonhq.com, sources of Request Tracker.

--
Ilya Martynov (http://martynov.org/)

Replies are listed 'Best First'.
Re: Embeded Perl
by Juerd (Abbot) on Dec 20, 2001 at 00:53 UTC
    My try was http://plp.juerd.nl/, as I didn't really like the existing alternatives. There'll be a new version soon.
    The thought behind it is quite simple: s/// the page into a CGI script and eval it ;) Works like a charm.

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

        That question isn't in there because I don't know if it's "better" or not. It depends on your definition of "good" anyway.

        2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-16 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found