[Catalyst] Re: Mason view hackers (and other views), PING
A. Pagaltzis
pagaltzis at gmx.de
Sat May 19 18:55:15 GMT 2007
* Matt S Trout <dbix-class at trout.me.uk> [2007-05-19 19:45]:
> comp_root => do { my $root = $c->config->{root}; "${root}"; },
>
> would be better, I think.
Why `do`? Wouldn’t this be just as good?
comp_root => "" . $c->config->{root},
The `stringify` method doesn’t have side effects, I hope?
(Also, talk about leaky abstractions…)
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst
mailing list