summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-08 22:26:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-08 22:26:06 +0000
commit4c722bf569ca23760269c2a4ed147d047398288a (patch)
treedd8599c6763b1560fad396feb521d7bd7d59eb3e /perl_checker.src
parentf585176ac98de3d36207c0cbbfbbc601b430a6fe (diff)
downloadperl-MDK-Common-4c722bf569ca23760269c2a4ed147d047398288a.tar
perl-MDK-Common-4c722bf569ca23760269c2a4ed147d047398288a.tar.gz
perl-MDK-Common-4c722bf569ca23760269c2a4ed147d047398288a.tar.bz2
perl-MDK-Common-4c722bf569ca23760269c2a4ed147d047398288a.tar.xz
perl-MDK-Common-4c722bf569ca23760269c2a4ed147d047398288a.zip
*** empty log message ***
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/test/suggest_better.t2
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