in reply to Re^2: Reference assessment techniques and how they fail
in thread Reference assessment techniques and how they fail
The whole tying thing is, for example, DBM::Deep. dbm-deep provides both TIEARRAY and TIEHASH and all appropriate methods in subclasses. Those methods didn't have to be in subclasses. It might be useful to test.my $scalar = 'abcd'; my $obj = Object::MultiType->new( scalar => $scalar );
Also, reftype(), when implemented in pureperl (such as when installed without a compiler), reblesses to a string that shouldn't be a class, but might. That should be tested.
Frankly, I would be more interested in figuring out how to make sub isHash { eval { %{ $_[0] }; 1 }; } work without warnings. That seems to be a saner solution because it has perl figuring out how Perl works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reference assessment techniques and how they fail
by kyle (Abbot) on Feb 18, 2008 at 02:12 UTC | |
by tye (Sage) on Feb 18, 2008 at 04:02 UTC | |
by kyle (Abbot) on Feb 18, 2008 at 04:27 UTC | |
by kyle (Abbot) on Feb 18, 2008 at 15:56 UTC |