[Catalyst] best practice: where to put constants

Ian Wells ijw at cack.org.uk
Thu Jun 4 17:07:39 GMT 2009


2009/6/4 Tomas Doran <bobtfish at bobtfish.net>:
> use constant {
>    THING_FOO => 0,
>    THING_BAR => 1,
> };


As we steadily go offtopic, I thought "use Readonly" was preferred
over "use constant" nowadays?  Not that I remember the arguments why.
Anyone else have an opinion here?

-- 
Ian.



More information about the Catalyst mailing list