in reply to Table::Extract unblessed reference
I've never seen a class name determined that way before. ref($that) will return the type of reference if $that is a reference. That doesn't seem right, does it? I'm thinking maybe the module author meant to use a conditional operator there instead.sub new { my $that = shift; my $class = ref($that) || $that; #<-- (line 74) # [snip] bless $self, $class; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Table::Extract unblessed reference
by chromatic (Archbishop) on Jul 29, 2005 at 23:24 UTC | |
by mojotoad (Monsignor) on Aug 01, 2005 at 06:39 UTC |