Perl: hash散列转换为Json报错集, perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $

 

bash-2.03$ ./u_json.pl

Can't locate object method "encode" via package "JSON" at ./u_json.pl line 24.

 

 

bash-2.03$ ./v_hash_2_Jason.pl
Can't call method "encode_json" on unblessed reference at ./v_hash_2_Jason.pl line 32.

 

bash-2.03$ ./v_hash_2_Jason.pl
Operator or semicolon missing before %bless_function at ./v_hash_2_Jason.pl line 13.
Ambiguous use of % resolved as operator % at ./v_hash_2_Jason.pl line 13.
Bareword "encode_json" not allowed while "strict subs" in use at ./v_hash_2_Jason.pl line 13.
Bareword "bless_function" not allowed while "strict subs" in use at ./v_hash_2_Jason.pl line 13.
Execution of ./v_hash_2_Jason.pl aborted due to compilation errors.

 

 

bash-2.03$ ./x_2_json.pl
Can't locate object method "allow_nonref" via package "JSON" at ./x_2_json.pl line 24.
bash-2.03$ mv hash_2_Jason.pl v_hash_2_Jason.pl

posted @ 2019-06-20 17:04  jimy1  阅读(276)  评论(0编辑  收藏  举报
Total Visits
AmazingCounters.com