<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 5, 2013, at 5:15 PM, David Alban wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">i'm quite happy to use global "constants" i declare using the Readonly<br>module.  i'm curious to know if anyone thinks that's a bad idea.<br></span></blockquote></div><br><div>Sounds fine to me.  I do it all the time (see Pinto::Constants).</div><div><br></div><div>And on very rare occasions, I do use global variables (see Pinto::Globals) but only to help facilitate testing.</div><div><br></div><div>Of course, everyone has an opinion on exactly *how* you create a constant in Perl, but that's another story.</div><div><br></div><div>-Jeff</div></body></html>