At 7:39 PM +0800 7/18/05, Gav.... wrote:
What would be the changes required to write this a Perl 6 file, my guess is
:-

#!/usr/bin/pugs
use v6;

but I don't know about the rest of it.

I'd like to get this sorted first and then write a test perl6 module and use
that in my test perl 6 script. Then I think the fog will have cleared.

If you want to write your program now, you should look at the 'CGI' module that is already ported to native Perl 6, and use that. The 'DBI' module hasn't been ported yet, but you can use the Perl 5 version by saying 'use perl5:DBI' or something like that (you may need to explicitly build Pugs with Perl 5 linked in, for that to work). Then you just have to update the rest of your code to be good Perl 6. Lots of examples exist now with Pugs. -- Darren Duncan

Reply via email to