Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: [OT?] Other Languages

by TedPride (Priest)
on May 24, 2005 at 17:57 UTC ( [id://460110]=note: print w/replies, xml ) Need Help??


in reply to [OT?] Other Languages

I use PHP when I have something simple I want to embed in a page and I don't want to mess with templates. I know a lot of Perl programmers think mixing code and HTML is evil, but the dark side of the force is seductive...

It's too bad there isn't a page extension that lets you embed Perl. I'd dump PHP in a flash.

<?perl print for reverse 1..10; print "BLASTOFF!"; ?>

Replies are listed 'Best First'.
Re^2: [OT?] Other Languages
by etcshadow (Priest) on May 25, 2005 at 03:24 UTC
    gloryhack mentioned HTML::EmbPerl. That would look like:
    <html> ... [- print for reverse 1..10; print "BLASTOFF!"; -] ... </html>
    There's also Apache::ASP. It would look so very different as to be:
    <html> ... <% print for reverse 1..10; print "BLASTOFF!"; %> ... </html>
    Egadz! There's also several others (for example HTML::Mason, which (much like Apache::ASP) can be used in a fairly light-weight manner, as well as more template-heavy). For what it's worth, I've used both and prefer Apache::ASP.
    ------------ :Wq Not an editor command: Wq
Re^2: [OT?] Other Languages
by gloryhack (Deacon) on May 25, 2005 at 03:16 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://460110]
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: (6)
As of 2024-04-24 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found