summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/test/suggest_better.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-09 12:03:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-09 12:03:32 +0000
commit564490341f966f7b0c1bda41fca4cb8e36536419 (patch)
tree233a0cb1c6aa3a5c6cdeb432d5261880cfe23120 /perl_checker.src/test/suggest_better.t
parent4c722bf569ca23760269c2a4ed147d047398288a (diff)
downloadperl-MDK-Common-564490341f966f7b0c1bda41fca4cb8e36536419.tar
perl-MDK-Common-564490341f966f7b0c1bda41fca4cb8e36536419.tar.gz
perl-MDK-Common-564490341f966f7b0c1bda41fca4cb8e36536419.tar.bz2
perl-MDK-Common-564490341f966f7b0c1bda41fca4cb8e36536419.tar.xz
perl-MDK-Common-564490341f966f7b0c1bda41fca4cb8e36536419.zip
finishing context checks cleanup
Diffstat (limited to 'perl_checker.src/test/suggest_better.t')
-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 865ace8..58a1308 100644
--- a/perl_checker.src/test/suggest_better.t
+++ b/perl_checker.src/test/suggest_better.t
@@ -54,6 +54,8 @@ my @l = (); no need to initialize variables, it's d
$l[$#l] you can replace $#l with -1
+$#l == 0 $#x == 0 is better written @x == 1
+
xxx(@_) replace xxx(@_) with &xxx
member($xxx, keys %h) you can replace "member($xxx, keys %yyy)" with "exists $yyy{$xxx}"