Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Starting with Perl

by Jaap (Curate)
on Jul 26, 2005 at 09:45 UTC ( #478114=note: print w/ replies, xml ) Need Help??


in reply to Re: Starting with Perl
in thread Starting with Perl

I don't think may people here will agree, but i recommend for your first web-app you don't use a templating system and just print HTML statements wherever you need them. This has 2 advantages:

  • You really see what happens right in the code
  • It gets so dirty so quickly that next time you'll want to use a templating system
As for the inclusion of another perl file:
You can use eval but the better way would be to create a perl module (.pm file) that you can then use.


Comment on Re^2: Starting with Perl
Re^3: Starting with Perl
by mikeraz (Friar) on Jul 26, 2005 at 17:30 UTC

    I second that idea. Do it without a templating system to get a strong viceral sense of why they're such a great thing. Then translate your project into whatever template system you choose. Both experiences, the raw creation and the translation from one system to another, will contribute to your mental toolbox.

    Be Appropriate && Follow Your Curiosity

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://478114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-09-19 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (132 votes), past polls