From 42577829b15f25552d88754a66d56a3020991456 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 8 May 2004 22:26:06 +0000 Subject: *** empty log message *** --- perl_checker.src/test/suggest_better.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl_checker.src') 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 -- cgit v1.2.1