[Catalyst] TT2 + CP::Authentication + DBIC gotcha

Andrew Rodland arodland at comcast.net
Fri Jul 13 22:24:34 GMT 2007


On Friday 13 July 2007 03:59:09 pm Jonathan Swartz wrote:
> [my $foo if 0 discussion]
> I have the same experience every few years, and I've never been able
> to understand why this can't simply be detected and at least flagged
> as an error or warning in the Perl compiler. Does anyone know?
>
> It's one of the few things about Perl that gets me angry. :)

As mst pointed out, this construct _will_ warn in 5.10. If there should ever 
be a 5.12, it might be upgraded to an error there, as 5.9.4 has backported 
the p6 "state" keyword for function static vars, making the hack entirely 
unnecessary :)

Andrew



More information about the Catalyst mailing list