Elyse M. Grasso wrote:
> I was able to surface long enough to review the use of perl modules in our 
> current, perl5-based architecture. And the answer is that we hardly use any, 
> because it was written against an old version of perl5 shipped with a very 
> limited set of modules and little or no ability to add CPAN modules. 

That hurts :(

> Even my CGI accesses use Socket.pm, not CGI.pm which wasn't available for my 
> customer's users. The only other module used in the existing main product is 
> the proprietary CQPerlExt.pm which will be a problem in any case. And the 
> install/configure tool uses Cwd and File::Copy.
>
> For the new architecture, I will need an XML parser, preferably with DTD 
> validation. From reviewing the parrot and pugs source trees, it looks like 
> there is already progress toward providing that functionality. (An XML writer 
> might be useful, but isn't critical. I've generated a lot of XML using print 
> statements over the past few years.)

If you like XML::LibXML, you could use parrot's NCI to wrap libxml for
Perl 6. There are a few examples of Rakudo using C libraries (namely for
MySQL and xlib), so the basic functionality is there.

> I would like to use an official CGI.pm, if one is available.

Please forget about the "official". Perl 6 will hopefully have multiple
implementations, and they are all "official" if they pass the test suite.

>From what I've gathered so far, Perl 6 core will only be shipped with
the modules needed to install more modules, for which CGI certainly
isn't needed.

Besides the pugs and parrot repository there's also the November wiki
[1] project, which contains a basic, working CGI module, as well as a
very basic HTML::Template implementation.

[1] http://github.com/viklund/november/tree/master

> If there is no one already working on porting Cwd or File::Copy, I will make 
> porting those to perl6 my introduction to serious perl6 work. Please let me 
> know if either of them is made redundant by new features in perl6. I have 
> been 
> reviewing the faqs and wikis to refresh my memory about the new design, but 
> might have missed something.

As much as I appreciate your enthusiasm, I'm not sure that Cwd or
File::Copy are good places to start, because they rely largely on IO and
interaction with the OS, both of which aren't very will specced, and not
very well implemented either.

CGI is a much better start, because it can be done in pure perl.

Most perl hackers agree that the parameter parsing and the HTML
generation part of perl 5's CGI.pm should be split up into two modules,
because they are only weakly coupled, and if you use only of them the
other half is bloat for you.

> And if anyone is working on CGI or XML and wants a tester, please let me know.

I'm sure the November hackers welcome more tests for CGI (cc-ing their
mailing list).



-- 
Moritz Lenz
http://perlgeek.de/ |  http://perl-6.de/ | http://sudokugarden.de/

Reply via email to