summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/test/suggest_better.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-10-14 05:06:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-10-14 05:06:52 +0000
commitd796a03012be18aad75008fec86ba90bf1d3c513 (patch)
tree29251fd9ff59d58599b206ebd941d5f1d1613966 /perl_checker.src/test/suggest_better.t
parentb5c54309bae69c9c0c8fd02245a79b2da468464e (diff)
downloadperl_checker-d796a03012be18aad75008fec86ba90bf1d3c513.tar
perl_checker-d796a03012be18aad75008fec86ba90bf1d3c513.tar.gz
perl_checker-d796a03012be18aad75008fec86ba90bf1d3c513.tar.bz2
perl_checker-d796a03012be18aad75008fec86ba90bf1d3c513.tar.xz
perl_checker-d796a03012be18aad75008fec86ba90bf1d3c513.zip
suggest mkdir() instead of system("mkdir ...")
Diffstat (limited to 'perl_checker.src/test/suggest_better.t')
-rw-r--r--perl_checker.src/test/suggest_better.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl_checker.src/test/suggest_better.t b/perl_checker.src/test/suggest_better.t
index 4b8d2d5..e98e64f 100644
--- a/perl_checker.src/test/suggest_better.t
+++ b/perl_checker.src/test/suggest_better.t
@@ -100,3 +100,6 @@ $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
+system(qq(foo "$xxx")) instead of quoting parameters you should give a list of arguments
+
+system("mkdir", $xxx) you can replace system("mkdir ...") with mkdir(...)