diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-26 11:08:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-26 11:08:33 +0000 |
commit | a448e88165084ad52cdfe6a2446bfa8f1ac4f4b5 (patch) | |
tree | bbfd6f82154e9fdc6ec2e6e5b4e764e4b26bbfa4 /perl_checker.src/parser_helper.ml | |
parent | da55691c844db9b3dcf547c34235b2e8ffd2493c (diff) | |
download | perl_checker-a448e88165084ad52cdfe6a2446bfa8f1ac4f4b5.tar perl_checker-a448e88165084ad52cdfe6a2446bfa8f1ac4f4b5.tar.gz perl_checker-a448e88165084ad52cdfe6a2446bfa8f1ac4f4b5.tar.bz2 perl_checker-a448e88165084ad52cdfe6a2446bfa8f1ac4f4b5.tar.xz perl_checker-a448e88165084ad52cdfe6a2446bfa8f1ac4f4b5.zip |
don't "double quotes are unneeded" for "@m3[1..$#m3]"
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r-- | perl_checker.src/parser_helper.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index 7c61f1b..0376cbb 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -1136,7 +1136,8 @@ let to_String parse strict { any = l ; pos = pos } = if ident <> "!" && strict then warn [Warn_suggest_simpler] pos (sprintf "%s is better written without the double quotes" (variable2s(I_scalar, ident))) | [ "", List [Deref(I_hash, _)]] -> warn [Warn_traps] pos "don't use a hash in string context" - | [ "", List [Deref(I_array, _)]] -> + | [ "", List [Deref(I_array, _)]] + | [ "", List [Deref_with(I_array, I_array, _, _)]] -> (* for slices like: "@m3[1..$#m3]" *) () | [("", _)] -> if strict then warn [Warn_suggest_simpler] pos "double quotes are unneeded" |