summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/test/various_errors.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-04-28 12:55:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-04-28 12:55:44 +0000
commit47e49317bcb377a94fdf14c8172710c962460e99 (patch)
tree01872c5f0c624b3beb390dd64d83c0bc2bb2becf /perl_checker.src/test/various_errors.t
parentf1e322310f4ca8240b3da447d18b716dec7f7262 (diff)
downloadperl-MDK-Common-47e49317bcb377a94fdf14c8172710c962460e99.tar
perl-MDK-Common-47e49317bcb377a94fdf14c8172710c962460e99.tar.gz
perl-MDK-Common-47e49317bcb377a94fdf14c8172710c962460e99.tar.bz2
perl-MDK-Common-47e49317bcb377a94fdf14c8172710c962460e99.tar.xz
perl-MDK-Common-47e49317bcb377a94fdf14c8172710c962460e99.zip
various detection of join() misuse
Diffstat (limited to 'perl_checker.src/test/various_errors.t')
-rw-r--r--perl_checker.src/test/various_errors.t4
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