Subject: | Can ref(...) return a string with "="? |
The source code of Data::Walk contains these lines (starting from line
93):
my $ref = ref $item;
if ($ref) {
my $blessed = -1 != index $ref, '=';
I wonder if $blessed can ever be true here. As far as I know, ref is
just returning strings like HASH, ARRAY, REF, or the class name, but
never a string with a "=" in it.
In fact, running the test suite with Devel::Cover shows that the line
bless $item if $blessed;
is never accessed with a true $blessed value.
Regards,
Slaven