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

use Perl Log In

Log In

[ Create a new account ]

Journal of markjugg (792)

Saturday August 26, 2006
07:28 AM

CGI::App to Perl6: A detour, improving for p6

[ #30760 ]
As I looked in my failing tests for CGI::Application for Perl6, I realized that for Perl6 wasn't as developed as I thought.

It wasn't an OO interface, apparently because it was developed a while ago before that part of pugs was finished. Further, it didn't yet support creating a new object by passing some params to new.

A little bit of hacking later, I fixed and commited both those parts of for Perl6. You can now do this in Perl6:

  use Test;
  plan 1;

  use CGI;
  my $q = rm => 'cgiapp_rocks' );
  is($q.param('rm'), 'cgiapp_rocks');

In fact, that looks a lot like one of tests I wrote. ;-).

From there I moved on to providing feedback about the documentation spec for Perl6. Damian Conway responded there, and I look forward to reading the updated spec for that should be available soon.

Until then, back to hacking CGI::Application and Perl6...

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.