Scalar::Util is now required.
my %PREREQ_PM = (
'Carp' => 0,
+ 'Scalar::Util' => 0,
'Text::Balanced' => 0,
);
use warnings;
use Carp qw<croak>;
+use Scalar::Util qw<blessed>;
use Text::Balanced qw<extract_bracketed>;
=head1 NAME
sub _check_self {
croak 'First argument isn\'t a valid ' . __PACKAGE__ . ' object'
- unless ref $_[0] and $_[0]->isa(__PACKAGE__);
+ unless blessed $_[0] and $_[0]->isa(__PACKAGE__);
}
my %types = (
=head1 DEPENDENCIES
-L<Carp> (core module since perl 5), L<Text::Balanced> (since 5.7.3).
+L<Carp> (core module since perl 5), L<Scalar::Util>, L<Text::Balanced> (since 5.7.3).
=head1 CAVEATS