[Catalyst] Catalyst::Helper generating bad code
Jeff Chimene
jchimene at gmail.com
Thu May 17 18:02:40 GMT 2007
Jeff Chimene wrote:
> Hi,
>
> I'm trying to figure out what's going on w/ Catalyst::Helper.
>
> It's generating bad code for my controller since 7-May
>
> ----- generated code follows
> =head1 METHODS
>
> =over 4
>
> #
> # Uncomment and modify this or add new actions to fit your needs
> #
> #=item default
> #
> #=cut
> #
> #sub default : Private {
> # my ( $self, $c ) = @_;
> #
> # # Hello World
> # $c->response->body('aic::Controller::Login is on Catalyst!');
> #}
>
> =back
>
> ----- end generated code
>
> After uncommenting the code and rendering the generated code:
>
> $ perldoc lib/aic/Controller/Login.pm
> .
> .
> .
> The above isn't legal POD after uncommenting:
>
> POD ERRORS
> Hey! The above document had some coding errors, which are
> explained below:
>
> Around line 21:
> You can't have =items (as at line 26) unless the first thing
> after the =over is an =item
>
> This started after a recent Catalyst::Devel upgrade via CPAN &c.
> However, search.cpan doesn't show this version of Catalyst::Helper
>
> I'd like to file a bug report on this, but CPAN isn't reporting this
> version of Catalyst::Helper. When I look at the Catalyst::Helper source,
> it doesn't match what's installed on my system. The version on CPAN is
> what worked before 7-May. I cannot find a VERSION string in
> Catalyst::Helper.
>
> Confused,
> jec
>
Never mind. I was too liberal with the 'uncomment region' action.
Cheers,
jec
More information about the Catalyst
mailing list