X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FItem.pm;h=03645897020cb9eb7433be823acd3d6796d57c3b;hb=b3cb70385763ff1067a42fa7e470177bef3485e8;hp=a80b9d248a66185858a39e9934330e376f4e9841;hpb=8937074ab98e81964dee9ccf9bbd939ebf3252a0;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Item.pm b/lib/Moose/Autobox/Item.pm index a80b9d2..0364589 100644 --- a/lib/Moose/Autobox/Item.pm +++ b/lib/Moose/Autobox/Item.pm @@ -1,10 +1,18 @@ package Moose::Autobox::Item; use Moose::Role 'requires'; -our $VERSION = '0.01'; +our $VERSION = '0.02'; requires 'defined'; +sub dump { + my $self = shift; + require Data::Dumper; + return Data::Dumper::Dumper($self); +} + +*perl = \&dump; + 1; __END__ @@ -15,11 +23,6 @@ __END__ Moose::Autobox::Item - the Item role -=head1 SYNOPOSIS - - use Moose::Autobox; - use autobox; - =head1 DESCRIPTION This is the root of our role hierarchy. @@ -30,6 +33,18 @@ This is the root of our role hierarchy. =item B +=item B + +Calls Data::Dumper::Dumper. + +=item B + +Same as B. For symmetry with Perl6's .perl method. + +Like &print with newline. + +=item B + =back =head1 REQUIRED METHODS @@ -52,11 +67,11 @@ Stevan Little Estevan@iinteractive.comE =head1 COPYRIGHT AND LICENSE -Copyright 2006 by Infinity Interactive, Inc. +Copyright 2006-2007 by Infinity Interactive, Inc. L 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