diff options
| -rw-r--r-- | perl_checker.src/test/suggest_better.t | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/perl_checker.src/test/suggest_better.t b/perl_checker.src/test/suggest_better.t index 9e55e20..865ace8 100644 --- a/perl_checker.src/test/suggest_better.t +++ b/perl_checker.src/test/suggest_better.t @@ -74,6 +74,8 @@ foreach (@l) {                           use "push @l2, map { ... ? ... : () } .  if (grep { xxx() } @l) {}                in boolean context, use "any" instead of "grep" +$xxx = grep { xxx() } @l;                you may use "find" instead of "grep" +  $xxx ? $yyy : ()                         you may use if_() here                                             beware that the short-circuit semantic of ?: is not kept                                             if you want to keep the short-circuit behaviour, replace () with @{[]} and there will be no warning anymore  | 
