[Catalyst] Accessing $c from Model
Jonathan Rockway
jon at jrock.us
Wed Dec 27 20:14:14 GMT 2006
> Isn't that really really slow though? Constructing a new object for each call?
No, it's not. Creating an object in Perl amounts to setting a flag (the
OBJECT flag in subclasses of SvPVMG, to be exact).
See illguts: http://gisle.aas.no/perl/illguts/
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
More information about the Catalyst
mailing list