hongmeigui22027 发表于 2015-12-27 12:10:15

Perl requires explicit package name

  source : http://stackoverflow.com/questions/16219095/perl-requires-explicit-package-name
  
  You might find it helpful to add use diagnostics; which would give you this additional information:
  (F) You've said "use strict" or "use strict vars", which indicates that all variables must either be lexically scoped (using "my" or "state"), declared beforehand using "our", or explicitly qualified to say which package the global variable is in (using "::").
  foreach $value(@values1){ should be foreach my $value(@values1){
  
页: [1]
查看完整版本: Perl requires explicit package name