diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-05-08 22:26:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-05-08 22:26:06 +0000 |
commit | 4c722bf569ca23760269c2a4ed147d047398288a (patch) | |
tree | dd8599c6763b1560fad396feb521d7bd7d59eb3e /perl_checker.src | |
parent | f585176ac98de3d36207c0cbbfbbc601b430a6fe (diff) | |
download | perl-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.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 |