X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FSub%2FPrototype%2FUtil.pm;h=d0026f36180bde09f8d3984e682cdd5452a9b0d6;hb=40ed7a47f9570e982d239192363fbe64b7f1507b;hp=df3e45635b3331189460ee8a5f5d31bfb80c4487;hpb=bc05eb29f9f194f122bea1ddd5ddbf81acf1f359;p=perl%2Fmodules%2FSub-Prototype-Util.git diff --git a/lib/Sub/Prototype/Util.pm b/lib/Sub/Prototype/Util.pm index df3e456..d0026f3 100644 --- a/lib/Sub/Prototype/Util.pm +++ b/lib/Sub/Prototype/Util.pm @@ -14,13 +14,13 @@ Sub::Prototype::Util - Prototype-related utility routines. =head1 VERSION -Version 0.08 +Version 0.09 =cut use vars qw/$VERSION/; -$VERSION = '0.08'; +$VERSION = '0.09'; =head1 SYNOPSIS @@ -70,6 +70,7 @@ sub _clean_msg { Flattens the array C<@args> according to the prototype C<$proto>. When C<@args> is what C<@_> is after calling a subroutine with prototype C<$proto>, C returns the list of what C<@_> would have been if there were no prototype. +It croaks if the arguments can't possibly match the required prototype, e.g. when a reference type is wrong or when not enough elements were provided. =cut @@ -128,7 +129,7 @@ Valid keys are : 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 C. +You may also want to use L. =item C<< wrong_ref => $code >> @@ -309,7 +310,7 @@ Tests code coverage report is available at L