Revision history for Perl extension Moose::Autobox
-0.02
+0.03
+ - added &mixin_additional_role to allow mixing in of
+ additional functionality
+
+ - added new examples for units
+ - ported from the Pugs examples/units directory
+
+ * Moose::Autobox::Code
+ - added the Y and U combinators
+
+0.02 Sat. June 24, 2006
- fixed Moose::Autobox so that PAUSE won't try to
index SCALAR, ARRAY, HASH and CODE.
use base 'autobox';
+use Moose::Autobox::Undef;
+
sub import {
(shift)->SUPER::import(
DEFAULT => 'Moose::Autobox::',
=head1 NAME
-Moose::Autobox - Autoboxed for her pleasure
+Moose::Autobox - Ruby ain't got nothin on us
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
print 'Print squares from 1 to 10 : ';
print [ 1 .. 10 ]->map(sub { $_ * $_ })->join(', ');
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
[ 1..5 ]->isa('ARRAY'); # true
[ a..z ]->does('Moose::Autobox::Array'); # true
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
my $x;
$x->defined; # false
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
print { one => 1, two => 2 }->keys->join(', '); # prints 'one, two'
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
"Hello World"->uc; # HELLO WORLD
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox UNDEF => 'Moose::Autobox::Undef';
my $x;
$x->defined; # false
=head1 SYNOPOSIS
use Moose::Autobox;
- use autobox;
# execute a sub on the value
print 10->do(sub { $_ * $_ }); # prints 100
use strict;
use warnings;
-use Test::More tests => 56;
+use Test::More tests => 55;
BEGIN {
use_ok('Moose::Autobox');
- use_ok('Moose::Autobox::Undef');
}
use Moose::Autobox;