in reply to why use module??
why do we use module in perl
Lots and lots of reasons, here are two of the main advantages:
Does the using of module help to increase the loading speed of the page?
You sound a bit confused here. Modules can be used for much more than just HTML generation. For HTML generation though, using a template system will definately make your code a lot cleaner, more maintainable, and faster to develop than printing HTML will a bunch of heredocs and loops. On the other hand, I'm not a big fan of using CGI.pm's generation methods and would almost prefer a mess of heredocs to them :).
You might also want to take a look at UTFM - Use the Friendly Modules and/or do a super search on the subject.
Update: As for templating systems, check out HTML::Template and jeffa's excellent tutorial on the subject.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: why use module??
by kwtow (Novice) on May 06, 2002 at 05:49 UTC | |
by strat (Canon) on May 06, 2002 at 09:41 UTC |