Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Embeded Perl

by IlyaM (Parson)
on Dec 20, 2001 at 00:45 UTC ( #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, sources of Request Tracker.

Ilya Martynov (

Replies are listed 'Best First'.
Re: Embeded Perl
by Juerd (Abbot) on Dec 20, 2001 at 00:53 UTC
    My try was, 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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-08-14 22:52 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (76 votes). Check out past polls.