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; }
In reply to Re: Table::Extract unblessed reference
by kwaping
in thread Table::Extract unblessed reference
by thekestrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |