On Tue, Jul 05, 2005 at 10:59:53AM +0200, David Landgren wrote: > I like to use constant when I can, but the further you go back in time > the more brain-damaged it becomes. I think in 5.005 it only knows about > scalars. No hashrefs or arrayrefs allowed. I find this is a bit of a > bugger to work around.
Trivial. sub WHATEVER () { ...your value... } And its faster, too. Loading constant.pm and going through its various hoops probably costs you more than the savings of using a constant. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern Just call me 'Moron Sugar'. http://www.somethingpositive.net/sp05182002.shtml