-0.04 ...
- - ...
+0.04 Thu Aug 9 20:56:14 CEST 2007
+ - Automatically set strict and warnings like Moose does
0.03 Thu Aug 9 14:41:58 CEST 2007
- Minor POD typo correction
=head2 Library Definition
package MyLibrary;
- use strict;
# predeclare our own types
use MooseX::Types
Note that you currently cannot define types containing C<::>, since
exporting would be a problem.
+You also don't need to use C<warnings> and C<strict>, since the
+definition of a library automatically exports those.
+
=head1 LIBRARY USAGE
You can import the L<"type helpers"|/"TYPE HANDLER FUNCTIONS"> of a
my ($class, %args) = @_;
my $callee = caller;
+ # everyone should want this
+ strict->import;
+ warnings->import;
+
# inject base class into new library
{ no strict 'refs';
unshift @{ $callee . '::ISA' }, 'MooseX::Types::Base';