Perl requires explicit package name
source : http://stackoverflow.com/questions/16219095/perl-requires-explicit-package-nameYou 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]