autoboxing
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox.pm
index 5af7ff5..967778e 100644 (file)
@@ -9,8 +9,8 @@ use Scalar::Util ();
 
 our $VERSION = '0.01';
             
-sub import {
-    eval q|
+#sub import {
+#    eval q|
 package SCALAR;
 use Moose;
 with 'Moose::Autobox::Scalar';
@@ -26,9 +26,9 @@ with 'Moose::Autobox::Hash';
 package CODE;
 use Moose;
 with 'Moose::Autobox::Code';    
-    |;
-    confess 'Could not create autobox packages because - ' . $@ if $@;
-}               
+#    |;
+#    confess 'Could not create autobox packages because - ' . $@ if $@;
+#}               
 
 1;
 
@@ -42,26 +42,27 @@ Moose::Autobox - autoboxed for her pleasure
 
 =head1 SYNOPOSIS
 
+  use Moose::Autobox;
+  use autobox;
+    
+  print "Squares: " . [ 1 .. 10 ]->map(sub { $_ * $_ })->join(', ');
+
 =head1 DESCRIPTION
 
-  Any
+=head1 ROLES
+
   Item 
-      Bool
       Undef
       Defined
           Value
-              Num
-                Int
-              Str
+              Scalar*                
           Ref
-              ScalarRef
-              ArrayRef
-              HashRef
-              CodeRef
-              RegexpRef
-              Object   
-                  Role
-  
+              List
+                  Array*
+              Hash*
+              Code*
+
+  * indicates actual autoboxed types
 
 =head1 BUGS
 
@@ -82,7 +83,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
-
-