From a6ca42ec6122465baef9d2f2ce4051b8d5aaf4a4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 28 Apr 2004 15:49:18 +0000 Subject: suggest replacing system(qq(foo "$xxx")) with system('foo', $xxx) --- perl_checker.src/test/various_errors.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl_checker.src/test') diff --git a/perl_checker.src/test/various_errors.t b/perl_checker.src/test/various_errors.t index 0ad2154..535034b 100644 --- a/perl_checker.src/test/various_errors.t +++ b/perl_checker.src/test/various_errors.t @@ -22,6 +22,8 @@ join(@l) first argument of join() must be a scal join(',', 'foo') join('...', $foo) is the same as $foo +system(qq(foo "$xxx")) instead of quoting parameters you should give a list of arguments + my (@l2, $xxx) = @l; @l2 takes all the arguments, $xxx is undef in any case $bad undeclared variable $bad -- cgit v1.2.1