Subject: | Blessed references should be serializable |
This latest version resulted in objects that normally stringify to
generate errors now in this code:
# If the user passed in an object that didn't
pass one
# of the above tests, we can't do anything with
it:
my $type = blessed $_;
use Carp;
Carp::confess "Un-convertable reference: $type,
cannot use";
}
Which is checking blessed. Previously, things like URI or Class::DBI
objects would get turned into their string value.
There's also a typo in reftype:
sub to_file
{
my ($self, $file) = @_;
my ($fh, $buf, $do_close, $count) = (undef, '', 0, 0);
if (ref $file and retype($file) eq 'GLOB')
{
$fh = $file;
}
else