I have noticed, while trying to get my code to be strict-clean, that at least
one sort of require/import (I use this rather than "use" to delay loading from
compile time until after command-line checking, for speed consideration) is
driving strict into a frenzy.
I have a package called "resources" that implements a tie'd hash, to allow
me to throw certain data items around between subroutines and packages, alike.
resources uses Exporter, and exports both the hash itself and a reference to
it (there are also some methods used, though rarer that the basic
$Resource{A} = 'B' usage). Under strict, I get a gripe for *every* occurance
of either the hash (%Resource) or the hashref ($Resources, plural since the
methods affect the whole array, rather than one element). This, despite the
import method that (supposedly) set up a local STAB for these two.
Randy
--
^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS Phone: (303)607-5268
Denver, CO rjray@lookout.ecte.uswc.uswest.com
I don't suffer from insanity. I enjoy every minute of it.
one sort of require/import (I use this rather than "use" to delay loading from
compile time until after command-line checking, for speed consideration) is
driving strict into a frenzy.
I have a package called "resources" that implements a tie'd hash, to allow
me to throw certain data items around between subroutines and packages, alike.
resources uses Exporter, and exports both the hash itself and a reference to
it (there are also some methods used, though rarer that the basic
$Resource{A} = 'B' usage). Under strict, I get a gripe for *every* occurance
of either the hash (%Resource) or the hashref ($Resources, plural since the
methods affect the whole array, rather than one element). This, despite the
import method that (supposedly) set up a local STAB for these two.
Randy
--
^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS Phone: (303)607-5268
Denver, CO rjray@lookout.ecte.uswc.uswest.com
I don't suffer from insanity. I enjoy every minute of it.