[X.XXX] Released on XXXX-XX-XX
Policy Changes:
+ * BuiltinFunctions::ProhibitVoidGrep and ::ProhibitVoidMap: grep
+ and map called as functions are now allowed in slice operations.
+ RT #79289
+ Thanks to Wade at Anomaly dot org for the patch.
* Subroutines::RequireArgUnpacking: Most tests of the size of @_
are now allowed. RT #79138
Other Changes:
LICENSE
Makefile.PL
MANIFEST This list of files
+META.json
+META.yml
+README
t/00_modules.t
t/01_bad_perlcriticrc
t/01_config.t
t/20_policy_prohibit_evil_modules.t
t/20_policy_prohibit_hard_tabs.t
t/20_policy_prohibit_trailing_whitespace.t
+t/20_policy_prohibit_useless_no_critic.t
t/20_policy_require_consistent_newlines.t
t/20_policy_require_tidy_code.t
t/92_memory_leaks.t
xt/author/98_pod_syntax.t
xt/author/99_pod_coverage.t
xt/author/generate_without_optional_dependencies_wrappers.PL
-README
-META.yml
-META.json
return if $parent->isa('PPI::Structure::For');
return if $parent->isa('PPI::Structure::Condition');
return if $parent->isa('PPI::Structure::Constructor');
+ return if $parent->isa('PPI::Structure::Subscript');
my $grand_parent = $parent->parent();
if ($grand_parent) {
#-----------------------------------------------------------------------------
+## name Subscript grep (RT #79289)
+## failures 0
+## cut
+
+my %hash;
+
+delete @hash{ grep { m/ foo /smx } keys %hash };
+delete @hash{ grep m/ foo /smx, keys %hash };
+# The following is the form that was actually failing.
+delete @hash{ grep ( m/ foo /smx, keys %hash ) };
+
+#-----------------------------------------------------------------------------
+
##############################################################################
# $URL$
# $Date$
#-----------------------------------------------------------------------------
+## name Subscript map (derived from RT #79289)
+## failures 0
+## cut
+
+my %hash;
+
+delete @hash{ map { uc $_ } keys %hash };
+delete @hash{ map uc( $_ ), keys %hash };
+# This is the form analogous to what failed under RT #79289.
+delete @hash{ map ( uc( $_ ), keys %hash ) };
+
+#-----------------------------------------------------------------------------
+
##############################################################################
# $URL$
# $Date$