my $params = @_ == 1 ? $_[0] : {@_};
return bless {
+ # Need to quote package to avoid a problem with PPI mis-parsing this
+ # as a package statement.
# from Class::MOP::Package
- package => $params->{package},
+ 'package' => $params->{package},
namespace => \undef,
# attributes
my $params = @_ == 1 ? $_[0] : {@_};
return bless {
- package => $params->{package},
+ # Need to quote package to avoid a problem with PPI mis-parsing this
+ # as a package statement.
+ 'package' => $params->{package},
# NOTE:
# because of issues with the Perl API
$self->create_error_confess(@args);
}
-__PACKAGE__
+1;
# ABSTRACT: Prefer C<confess>
$self->create_error_croak(@args);
}
-__PACKAGE__
+1;
# ABSTRACT: Prefer C<croak>
}
}
-__PACKAGE__
+1;
# ABSTRACT: L<Carp> based error generation for Moose.