- Moose::Autobox::Scalar/Array/Hash
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Item.pm
index 08a6c61..af4bfd0 100644 (file)
@@ -5,6 +5,14 @@ our $VERSION = '0.01';
 
 requires 'defined';
 
+sub dump {
+    my $self = shift;
+    require Data::Dumper;
+    return Data::Dumper::Dumper($self);
+}
+
+*perl = *dump;
+
 1;
 
 __END__
@@ -25,6 +33,18 @@ This is the root of our role hierarchy.
 
 =item B<meta>
 
+=item B<dump>
+
+Calls Data::Dumper::Dumper.
+
+=item B<perl>
+
+Same as B<dump>. For symmetry with Perl6's .perl method.
+
+Like &print with newline.
+
+=item B<print2>
+
 =back
 
 =head1 REQUIRED METHODS
@@ -54,4 +74,4 @@ L<http://www.iinteractive.com>
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
-=cut
\ No newline at end of file
+=cut