diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 12:55:44 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 12:55:44 +0000 |
commit | de78701d02ead12353fdb70af275ff67a502b1f0 (patch) | |
tree | 81796b6218c3d6db16e78ed6f68e9854d34c1c42 /perl_checker.src/test | |
parent | 213d18c0842317ae689d860d2882aac0543aeeea (diff) | |
download | perl_checker-de78701d02ead12353fdb70af275ff67a502b1f0.tar perl_checker-de78701d02ead12353fdb70af275ff67a502b1f0.tar.gz perl_checker-de78701d02ead12353fdb70af275ff67a502b1f0.tar.bz2 perl_checker-de78701d02ead12353fdb70af275ff67a502b1f0.tar.xz perl_checker-de78701d02ead12353fdb70af275ff67a502b1f0.zip |
various detection of join() misuse
Diffstat (limited to 'perl_checker.src/test')
-rw-r--r-- | perl_checker.src/test/various_errors.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl_checker.src/test/various_errors.t b/perl_checker.src/test/various_errors.t index 4ad9976..0ad2154 100644 --- a/perl_checker.src/test/various_errors.t +++ b/perl_checker.src/test/various_errors.t @@ -18,6 +18,10 @@ $xxx ? $yyy = 1 : $zzz = 2; missing parentheses (needed for clarity N_("xxx") . 'yyy' N_("xxx") . "yyy" is dumb since the string "xxx" will never get translated +join(@l) first argument of join() must be a scalar + +join(',', 'foo') join('...', $foo) is the same as $foo + my (@l2, $xxx) = @l; @l2 takes all the arguments, $xxx is undef in any case $bad undeclared variable $bad |