summaryrefslogtreecommitdiff
path: root/Porting/Maintainers.pl
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-11-22 17:23:57 +0000
committerZefram <zefram@fysh.org>2017-11-22 17:23:57 +0000
commit5f3202fa3e77c4a20de590df045af4683aaedffa (patch)
tree5572a671df6c4586c7d77cf8f98787eb0f457f07 /Porting/Maintainers.pl
parent5e1cca32ac612f0b59508a99fbff671a693f39b9 (diff)
downloadperl-5f3202fa3e77c4a20de590df045af4683aaedffa.tar.gz
eviscerate smartmatch
Regularise smartmatch's operand handling, by removing the implicit enreferencement and just supplying scalar context. Eviscerate its runtime behaviour, by removing all the matching rules other than rhs overloading. Overload smartmatching in the Regexp package to perform regexp matching. There are consequential customisations to autodie, in two areas. Firstly, autodie::exception objects are matchers, but autodie has been advising smartmatching with the exception on the lhs. This has to change to the rhs, in both documentation and tests. Secondly, it uses smartmatching as part of its hint mechanism. Most of the hint examples, in documentation and tests, have to change to subroutines, to be portable across Perl versions.
Diffstat (limited to 'Porting/Maintainers.pl')
-rwxr-xr-xPorting/Maintainers.pl15
1 files changed, 13 insertions, 2 deletions
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index 116c12c64c..ee616af8d8 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -156,8 +156,15 @@ use File::Glob qw(:case);
t/system.t
)
],
- # CPAN RT 105344
- 'CUSTOMIZED' => [ qw[ t/mkdir.t ] ],
+ 'CUSTOMIZED' => [
+ # CPAN RT 105344
+ 't/mkdir.t',
+ # smartmatch changes
+ 'lib/autodie/exception.pm',
+ 'lib/autodie/hints.pm',
+ 't/exceptions.t',
+ 't/lib/Hints_pod_examples.pm',
+ ],
},
'AutoLoader' => {
@@ -409,6 +416,10 @@ use File::Glob qw(:case);
'DISTRIBUTION' => 'LEONT/experimental-0.017.tar.gz',
'FILES' => q[cpan/experimental],
'EXCLUDED' => [qr{^xt/}],
+ 'CUSTOMIZED' => [
+ # smartmatch changes
+ 't/basic.t',
+ ],
},
'Exporter' => {