Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Do you know where your variables are?
 
PerlMonks  

Re: [OT?] Other Languages

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 gloryhack (Deacon) on May 24, 2005 at 23:16 UTC
Re^2: [OT?] Other Languages
by etcshadow (Priest) on May 24, 2005 at 23: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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://460110]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.