]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/blobdiff - lib/Sub/Prototype/Util.pm
This is 0.11
[perl/modules/Sub-Prototype-Util.git] / lib / Sub / Prototype / Util.pm
index 011d1c2ad922841b0dde34b09a4482d978a51611..317f4e242b41fa0e4588996bcbb4e57560608658 100644 (file)
@@ -14,13 +14,13 @@ Sub::Prototype::Util - Prototype-related utility routines.
 
 =head1 VERSION
 
-Version 0.10
+Version 0.11
 
 =cut
 
 use vars qw<$VERSION>;
 
-$VERSION = '0.10';
+$VERSION = '0.11';
 
 =head1 SYNOPSIS
 
@@ -149,24 +149,32 @@ Valid keys are :
 
 =over 4
 
-=item C<< ref => $func >>
+=item *
+
+C<< ref => $func >>
 
 Specifies the function used in the generated code to test the reference type of scalars.
 Defaults to C<'ref'>.
 You may also want to use L<Scalar::Util/reftype>.
 
-=item C<< wrong_ref => $code >>
+=item *
+
+C<< wrong_ref => $code >>
 
 The code executed when a reference of incorrect type is encountered.
 The result of this snippet is also the result of the generated code, hence it defaults to C<'undef'>.
 It's a good place to C<croak> or C<die> too.
 
-=item C<< sub => $bool >>
+=item *
+
+C<< sub => $bool >>
 
 Encloses the code into a C<sub { }> block.
 Default is true.
 
-=item C<< compile => $bool >>
+=item *
+
+C<< compile => $bool >>
 
 Makes L</wrap> compile the code generated and return the resulting code reference.
 Be careful that in this case C<ref> must be a fully qualified function name.
@@ -383,7 +391,7 @@ Tests code coverage report is available at L<http://www.profvince.com/perl/cover
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2008,2009,2010,2011 Vincent Pit, all rights reserved.
+Copyright 2008,2009,2010,2011,2013 Vincent Pit, all rights reserved.
 
 This program is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.