Revision history for Sub-Prototype-Util
+0.10 2011-08-25 11:05 UTC
+ + Chg : recall() now uses "goto" to call the wrapper code (except for
+ perl 5.8.0).
+ + Chg : The internals sustained a large cleanup. This will hopefully
+ make it easier to understand and maintain.
+ + Fix : The functions of this module no longer clobber $@.
+ + Fix : Fix test failures on perl 5.8.0, and on perl 5.13.7 and above.
+ + Fix : Work around Kwalitee test misfailures.
+
0.09 2009-06-04 22:45 UTC
+ Chg : recall() was reimplemented in terms of wrap().
+ Chg : "compile => 1" is now the default for wrap.
"url" : "http://git.profvince.com/?p=perl%2Fmodules%2FSub-Prototype-Util.git"
}
},
- "version" : "0.09"
+ "version" : "0.10"
}
---- #YAML:1.0
-name: Sub-Prototype-Util
-version: 0.09
-abstract: Prototype-related utility routines.
+---
+abstract: 'Prototype-related utility routines.'
author:
- - Vincent Pit <perl@profvince.com>
-license: perl
-distribution_type: module
-configure_requires:
- ExtUtils::MakeMaker: 0
+ - 'Vincent Pit <perl@profvince.com>'
build_requires:
- ExtUtils::MakeMaker: 0
- Scalar::Util: 0
- Test::More: 0
+ Carp: 0
+ Exporter: 0
+ ExtUtils::MakeMaker: 0
+ Scalar::Util: 0
+ Test::More: 0
+configure_requires:
+ ExtUtils::MakeMaker: 0
+dynamic_config: 0
+generated_by: 'ExtUtils::MakeMaker version 6.59, CPAN::Meta::Converter version 2.112150'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Sub-Prototype-Util
+no_index:
+ directory:
+ - t
+ - inc
requires:
- Carp: 0
- Exporter: 0
- perl: 5.006
- Scalar::Util: 0
+ Carp: 0
+ Exporter: 0
+ Scalar::Util: 0
+ perl: 5.006
resources:
- bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sub-Prototype-Util
- homepage: http://search.cpan.org/dist/Sub-Prototype-Util/
- license: http://dev.perl.org/licenses/
- repository: http://git.profvince.com/?p=perl%2Fmodules%2FSub-Prototype-Util.git
-no_index:
- directory:
- - t
- - inc
-generated_by: ExtUtils::MakeMaker version 6.52
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sub-Prototype-Util
+ homepage: http://search.cpan.org/dist/Sub-Prototype-Util/
+ license: http://dev.perl.org/licenses/
+ repository: http://git.profvince.com/?p=perl%2Fmodules%2FSub-Prototype-Util.git
+version: 0.10
Sub::Prototype::Util - Prototype-related utility routines.
VERSION
- Version 0.09
+ Version 0.10
SYNOPSIS
- use Sub::Prototype::Util qw/flatten wrap recall/;
+ use Sub::Prototype::Util qw<flatten wrap recall>;
- my @a = qw/a b c/;
+ my @a = qw<a b c>;
my @args = ( \@a, 1, { d => 2 }, undef, 3 );
my @flat = flatten '\@$;$', @args; # ('a', 'b', 'c', 1, { d => 2 })
"ref => $func"
Specifies the function used in the generated code to test the
reference type of scalars. Defaults to 'ref'. You may also want to
- use "Scalar::Util::reftype".
+ use "reftype" in Scalar::Util.
"wrong_ref => $code"
The code executed when a reference of incorrect type is encountered.
<http://www.profvince.com/perl/cover/Sub-Prototype-Util>.
COPYRIGHT & LICENSE
- Copyright 2008-2009 Vincent Pit, all rights reserved.
+ Copyright 2008,2009,2010,2011 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.
=head1 VERSION
-Version 0.09
+Version 0.10
=cut
use vars qw<$VERSION>;
-$VERSION = '0.09';
+$VERSION = '0.10';
=head1 SYNOPSIS