[sf-perl] globals
Jeffrey Ryan Thalhammer
jeff at imaginative-software.com
Fri Apr 5 21:08:06 PDT 2013
On Apr 5, 2013, at 5:15 PM, David Alban wrote:
> i'm quite happy to use global "constants" i declare using the Readonly
> module. i'm curious to know if anyone thinks that's a bad idea.
Sounds fine to me. I do it all the time (see Pinto::Constants).
And on very rare occasions, I do use global variables (see Pinto::Globals) but only to help facilitate testing.
Of course, everyone has an opinion on exactly *how* you create a constant in Perl, but that's another story.
-Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20130405/5e45904a/attachment.html>
More information about the SanFrancisco-pm
mailing list