Revision history for Perl extension Moose::Autobox
-0.07
+0.07 Mon. April 28, 2008
* Moose::Autobox
- added documentation about how to extend the autoboxed
types (RT #34315)
package Moose::Autobox::Hash;
use Moose::Role 'with';
-use Carp qw(croak);
-
our $VERSION = '0.03';
with 'Moose::Autobox::Ref',
sub merge {
my ($left, $right) = @_;
- croak "You must pass a hashref as argument to merge"
+ Carp::confess "You must pass a hashref as argument to merge"
unless ref $right eq 'HASH';
return { %$left, %$right };
}