On 26 Mar 2009, at 11:35, Simon Forster wrote:

And what is the proper way? I've futzed about in a number or languages - including perl - but only at a very basic level with perl. I've got some web stuff to do and thought that having a go with perl may be a pleasant diversion. At the moment it looks like I'll be using Catalyst and Mason to help with the job - but what are the pratfalls to avoid - or the good practice to follow (use strict and warnings :-)

As an outsider, perl is its own worst enemy. Its proud boast is that there's more than one way of doing things (so show me a language where that's not true) while not really showing a good way. I accept that a chunk of this is style / taste / choice but a few pointers along the lines of "that way the road is quite straight and smooth" would help quite a lot.

I guess I'm asking for a magic formula which doesn't exist and that I should just bloody well get on and do it but I'll ask anyway.

There's been some recognition of this fact among long standing perl developers and there's probably
two main answers.

The older answer is something along the lines of "Perl Best Practice" the O'Reilly book by D. Conway and ideas behind it. See also http://www.perl.com/pub/a/2005/07/14/bestpractices.html .

The newer answer is an emerging buzzword called "Modern Perl" or sometimes "Enlightened Perl". Chromatic's blog on the subject, http://www.modernperlbooks.com/mt/, is probably the best
starting place for that idea.

- Mark

Reply via email to