summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser_helper.ml
diff options
context:
space:
mode:
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r--perl_checker.src/parser_helper.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml
index e1633fb..9230074 100644
--- a/perl_checker.src/parser_helper.ml
+++ b/perl_checker.src/parser_helper.ml
@@ -606,6 +606,13 @@ let call(e, para) = call_func false (e, para)
let call_one_scalar_para (e, (_, pos)) para =
+ let para =
+ match para with
+ | [] ->
+ warn_rule (sprintf "please use \"%s $_\" instead of \"%s\"" e e) ;
+ [var_dollar_ (raw_pos2pos pos)]
+ | _ -> para
+ in
let pri =
match e with
| "defined" -> P_expr