H
howa
e.g.
<?pl
echo "hello perl";
it would definitely become my choice of dynamic scripting language!
<?pl
echo "hello perl";
it would definitely become my choice of dynamic scripting language!
Sherm said:Have a look at HTML::Mason or Template::Toolkit.
sherm--
howa> yes, i know about other library can do this.. but the main point is,
howa> they are not offical Perl standard...
They are in the CPAN. It doesn't get much better than that. If you mean
"part of the Perl core", then no, it's not in the initial Perl distro
download. Why is that important?
print "Just another Perl hacker,"; # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
howa said:Sherm Pendley wrote:
yes, i know about other library can do this.. but the main point is,
they are not offical Perl standard...
howa said:well, i just thought that, if it is part-of-the-perl, then a lot of
people will consider using perl as the dynamic scripting language for
web page, rather than php, for example.
yes, i know that many perl hackers have a strong sense of
there-is-more-than-one-way-to-do-it, but standard is standard, people
think php is easy as <?php echo 'hello" ?> works. There is no need to
use CGI module, blah blah for example....
Yeah like all of those PHP forums and apps like Jinzora. Those are allCharlton said:h> well, i just thought that, if it is part-of-the-perl, then a
h> lot of people will consider using perl as the dynamic scripting
h> language for web page, rather than php, for example.
Mixing logic and presentation code in the way that PHP and ePerl
encourage is, frankly, stupid. It works well enough for small one-off
sites, but leads to poor architecture and poor maintainability.
Huh? Do you even understand what he's asking for? How is it "attractiveh> people think php is easy as <?php echo 'hello" ?> works. There
h> is no need to use CGI module, blah blah for example....
Why do you think that altering Perl to make it more attractive to the
ignorant and lazy will be an improvement?
Andrew DeFaria said:Yeah like all of those PHP forums and apps like Jinzora. Those are all
totally useless...
Huh? Do you even understand what he's asking for? How is it "attractive
to the ignorant and lazy" to want to have Perl easily available when
writing a web page?!? Oh sure you can use CGI but then everything has to
be handled by Perl.
And no I've never seen a poorly architected and
poorly maintainable web page written with Perl and CGI - and neither
have you! Give me a frigging break...
Andrew DeFaria said:Charlton Wilbur wrote:
Yeah like all of those PHP forums and apps like Jinzora. Those are all
totally useless...
Huh? Do you even understand what he's asking for? How is it "attractive
to the ignorant and lazy" to want to have Perl easily available when
writing a web page?!? Oh sure you can use CGI but then everything has to
be handled by Perl. And no I've never seen a poorly architected and
poorly maintainable web page written with Perl and CGI - and neither
have you! Give me a frigging break...
OK, those are all totally stupid.Justin said:Charlton didn't say they were useless.
I guess everybody's entitled to their own opinions, including myself. ToIt does? I think you've only seen web-servers that are poorly
configured. I have one here that runs perl and php scripts side by
side all day long. You're obviously mis-informed, but I don't know
where I should point you for the information you are lacking. Sorry.
Your logic is seriously flawed. Charlton was saying that mixing
programming code and layout code leads to poor maintainability.
Oh so then you got my sarcastic point after all.It doesn't follow that using perl instead means your site will be more
easily maintained; that requires skill.
With that sir I respectfully disagree.Poorly maintainable code can be written in any language, it's just
that, with a language like php, it's almost inevitable.
Yes. Do you understand the difference between stupid and useless?Charlton said:AD> Yeah like all of those PHP forums and apps like Jinzora. Those
AD> are all totally useless...
Do you understand the difference between "poorly designed and
difficult to maintain" and "useless"?
Which is why I pointed out such already written, well architected PHPMy experience in PHP, what little I've done, is that once you hit a
certain size this thing that you consider a useful feature becomes a
liability, and the programmers wind up needing to enforce a separation
between logic and presentation themselves or the project becomes
unmaintainable. As I've said, it works well enough for small one-off
sites, but leads to poor architecture and maintainbility.
As I see it you haven't gotten anywhere to start with. You bemoan aHint: if you want to refute that, point out ways in which mixing logic
and presentation leads to good architecture and maintainability;
introducing things like "usefulness" that are irrelevant to the point
gets you nowhere.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.