Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I’d suggest at least adding CGI::Application or CGI::Prototype to the mix. Neither adds significant weight, except for declaring dependencies on template systems that they don’t actually need in order to function. Maybe you can also get Sam Tregar and/or merlyn to fix that.

    Among template systems, Template::Simple is probably what you want. HTML::Template doesn’t have non-core dependencies either though.

    • I won't be using a templating module, it would really just be overkill.

      Instead I'm using a templating method which implements very small subset of Template Toolkit syntax... i.e. it just supports [% foo %]. :)

      sub template {
              my $self = shift;
              my $html = shift;
              my $args = shift || $self->args;
              foreach ( 0 .. 10 ) {
                      # Allow up to 10 levels of
      • If that is really all you need… then go for it. But I find that even minimal scripts outgrow that functionality very quickly.

        My main point was that you should take a look at the lightweight web frameworks for Perl, though. Even the tiniest apps benefit from them in my experience – as soon as you have more than 2 screens, you need to impose structure somehow. (Of course, variations of Greenspun’s 10th Rule apply to many things. You could build a rudimentary framework in situ – much

  • Have you considered writing it as a plugin for SVN::Web? SVN::Web::AuthManager or similar? Writing new actions is pretty simple [].
    • I don't want to do this mainly because by having it as a standalone application I can potentially reuse it in situations other than SVN. Initially, anything else that runs off a .htpasswd file (like protected directories and WebDAV shares) but later there's some potential to add other targets (what, I'm not sure yet).