> > Question to the OP: Why have you decided to try things out in Perl? If > it is because you've heard something like "Perl is better than PHP" > then stop and try to find out *why* and *in what situations* is Perl > better than PHP. In the situation of a simple webpage with a simple DB > lookup halfway down, I think PHP is probably simpler and easier to use > than Perl. Perl becomes better than PHP in more complex situations, > with larger websites, more complex databases and so on. Situations in > which web development frameworks such as Catalyst become appropriate. >
I have picked Perl recently and have started enjoying it. So thought of using it instead of PHP just for educational purpose. But any-ways thanks to all for sharing and making me aware with all the available frameworks. Hey BTW what does OP stand for ? :). My name is Parag... :) Cheers, Parag On Sun, Dec 6, 2009 at 2:35 PM, Philip Potter <philip.g.pot...@gmail.com>wrote: > 2009/12/6 Erez Schatz <moonb...@gmail.com>: > > This being said, anything you can do in PHP is available in Perl, PHP > > being the "less talented brother" of Perl and all. For instance, for > > embedding code tags in your HTML page, look no further than some > > awsome and powerful Perl modules such as Template::Toolkit > > (www.template-toolkit.org) which gives you EXACTLY that. You might > > also want to look at Catalyst, (www.catalystframework.org) which is a > > powerful, flexible and very excellent web-framework that gives you all > > of what you can pull off with PHP and then some. > > I support the recommendation of TT [Template::Toolkit], but Catalyst > is massive overkill as a recommendation here. Given that the OP said > this: > > > I have very basic requirements. I want to use Perl mainly to fetch > results > > from MySQL db inside HTML, just the same thing which we do inside the > > PHP tags <? ?> > > it is clear that Catalyst is far to big, bloated, and full-featured to > be an appropriate tool for the OP's goal. If all he wants to do is a > couple of DB lookups, he doesn't need a full blown MVC framework like > Catalyst. > > Question to the OP: Why have you decided to try things out in Perl? If > it is because you've heard something like "Perl is better than PHP" > then stop and try to find out *why* and *in what situations* is Perl > better than PHP. In the situation of a simple webpage with a simple DB > lookup halfway down, I think PHP is probably simpler and easier to use > than Perl. Perl becomes better than PHP in more complex situations, > with larger websites, more complex databases and so on. Situations in > which web development frameworks such as Catalyst become appropriate. > > If you are doing this as a way to learn Perl, be aware that you have > not picked a situation in which Perl outshines PHP; and you may wonder > afterwards why people rave about Perl. The answer is that the best > language depends on the task you are trying to achieve. > > If this is a pure learning exercise then I do recommend you learn > about MVC and read Catalyst::Manual::Tutorial -- it can show you a > totally different paradigm for web design than vanilla PHP offers. > > Phil > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >