On Tue, 15 Jul 2008 06:11:25 +1000 "Ivan Wills" <[EMAIL PROTECTED]> wrote:
> If Paul "LeoNerd" Evens doesn't want to create the module Devel::Refcount
> along with Test::Refcount I would be happy to do it my self.
Well, it's not that I don't want to as such.. I'm just not sure it's
really justified.
It's kindof a personal thing, but I have a disliking for the mass
accumulation of really small "one-liner" modules around the place. Would
anyone consider
package String::CaseInsensitive;
sub casecmp { lc $_[0] cmp lc $_[1] }
1;
as a module, for example?
When the module starts to get this small, I begin to wonder if it's more
of a documentation issue. Perhaps somewhere in the documentation about
objects and reference counts:
The reference count of an object can be obtained by
use B qw( svref_2object );
my $count = svref_2object($ref)->REFCNT;
--
Paul "LeoNerd" Evans
[EMAIL PROTECTED]
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/
signature.asc
Description: PGP signature
