Re: Perl version of PHP
[email protected] (Clifford Hammerschmidt)
| Newsgroups | perl.bootstrap |
|---|---|
| Message-ID | <[email protected]> |
EmPerl does something like this already. It's also evil, since it doesn't scale at all. PHP is a nice quick hack way of doing things. I'd recommend using HTML::Template and separating your HTML and your code completely. At 11:48 PM 7/20/2000 -0700, Weston wrote: >Hello all, >I was thinking how great the method Php uses to execute code. (For those >who don't know: Php is embedded right into a html page by using a code >block. For example: > ><?php print "Hello world"; ?> >this makes it very simple to add dynamic material right where you want >it.) > >And that led me to think, "Why can't perl code execute the same way!". >Perl code could be nested into html pages like this: > ><?perl print "I am Perl, not Php!!!"; ?> >and perl-html pages could end in .ptag or something. What'd ya'll think >'bout that? > >Weston > >-- >~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ >For God so loved the world that he gave his one and only Son, that >whoever believes in him shall not perish but have eternal life. >-John 3:16 > >I lift up my eyes to the hills-- where does my help come from? My help >comes from the LORD, the Maker of heaven and earth. >-Psalms 121:1-2 > >May the God of hope fill you with all joy and peace as you trust in him, >so that you may overflow with hope by the power of the Holy Spirit. >-Romans 15:13