+ -
当前位置:首页 → 问答吧 → Bareword not allowed while "strict subs" in use at . ---why!

Bareword not allowed while "strict subs" in use at . ---why!

时间:2011-03-09

来源:互联网

  1. use strict;
  2. use constant  DOW=>(aa,bb,cc);
复制代码
run it => error

Bareword "aa" not allowed while "strict subs" in use at
Bareword "bb" not allowed while "strict subs" in use at
Bareword "bb" not allowed while "strict subs" in use at
Execution of  aborted due to compilation errors.


仙子 help!!

作者: ztj2247   发布时间: 2011-03-09

去掉 use strict;

作者: ajdan4q   发布时间: 2011-03-09

普通array也不是这么写的

作者: yybmsrs   发布时间: 2011-03-09