How to structure a perl application

From: Henry Law (lawshouse.public_at_btconnect.com)
Date: 02/23/04


Date: Mon, 23 Feb 2004 22:42:17 +0000

I'm about to start writing an application in perl and need advice on
structuring it. When I wrote my first V*sual B*sic application the
code worked, mostly, but I virtually had to re-write it to undo the
bad structure I'd unwittingly used and I don't want to do that again.

I Googled a bit ([perl application structure] for example) without
finding much; can someone suggest a source of information?

If not, would it be OK for me to present my current ideas (a
combination of packages, separate files of code brought in via
"require", and judiciously chosen package global variables) for
consideration and refinement?

(When all's said and done this I'm not a professional and this code
will probably only ever be for my own use, so enterprise-wide code
management processes probably aren't appropriate. But I want to take
pride in what I'm doing ...)

Henry Law <>< Manchester, England



Relevant Pages

  • Re: Some Advice.
    ... >>am learning that naming is far more important in C than in Perl. ... >>Writing a program and learning is very fustrating. ... Perl was really bad for that in complex data structures. ... I hope that my code can be seen and I get some advice why ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Some Advice.
    ... Practice, practice. ... really need that much math to learn to program. ... > for an algorithm but writing a program is more like writing a good paper ... No comment, I don't know Perl. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Newbie Question...
    ... them for writing, they are automatically clobbered. ... > complains that it cannot close the first outputfile ... > of Perl, but what am I doing wrong with the script??? ... Can you do a recursive directory search in perl without ...
    (comp.lang.perl.misc)
  • Re: (1)[0] ok but not 1[0]
    ... FK> I think I'll be writing for some weeks, ... FK> "Programming Perl" and http://perldoc.perl.org/. ... there are dozens of perl tutorials on the net ...
    (comp.lang.perl.misc)
  • Re: Improving Robins blogger
    ... There are many other free blogger scripts, ... My advice is to investigate the competition. ... "I'm giving away this code as an example for Perl ... If the response time doubles after the one hundred and first username ...
    (comp.lang.perl.misc)