summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-18 10:45:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-18 10:45:33 +0000
commit959912cb126dbbbfa7a7d7a9fc7a258de50ecf0b (patch)
tree9664daf2ff00de0630a63c3d9d08bc64a79b6853 /perl_checker.src
parent87e82d0c7bf4585bfe1e2bf7ea19c2289c042233 (diff)
downloadperl_checker-959912cb126dbbbfa7a7d7a9fc7a258de50ecf0b.tar
perl_checker-959912cb126dbbbfa7a7d7a9fc7a258de50ecf0b.tar.gz
perl_checker-959912cb126dbbbfa7a7d7a9fc7a258de50ecf0b.tar.bz2
perl_checker-959912cb126dbbbfa7a7d7a9fc7a258de50ecf0b.tar.xz
perl_checker-959912cb126dbbbfa7a7d7a9fc7a258de50ecf0b.zip
"$!" is NOT better written without the double quotes
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/parser_helper.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml
index edd0023..46f6300 100644
--- a/perl_checker.src/parser_helper.ml
+++ b/perl_checker.src/parser_helper.ml
@@ -714,7 +714,7 @@ let to_String parse strict (l, (_, pos)) =
let l' = parse_interpolated parse l in
(match l' with
| [ "", List [Deref(I_scalar, Ident(None, ident, _))]] ->
- if strict then warn pos (sprintf "%s is better written without the double quotes" (variable2s(I_scalar, ident)))
+ if ident <> "!" && strict then warn pos (sprintf "%s is better written without the double quotes" (variable2s(I_scalar, ident)))
| [ "", List [Deref(I_hash, _)]] ->
warn pos "don't use a hash in string context"
| [ "", List [Deref(I_array, _)]] ->