>perl -c script.pl Global symbol "$aOrder" requires explicit package name at script.pl li +ne 11. Global symbol "$aOrder" requires explicit package name at script.pl li +ne 12. syntax error at script.pl line 38, near ") {" syntax error at script.pl line 40, near ""IN")" syntax error at script.pl line 42, near ""UP")" syntax error at script.pl line 48, near ") {" syntax error at script.pl line 50, near ""IN")" syntax error at script.pl line 52, near ""UP")" syntax error at script.pl line 54, near "}" script.pl had compilation errors.
The code you showed us and the code that gave you those errors are different. Until you reconcile this, there's no much we can do.
Give your erroneous usage of parens, I suspect the error you are trying to fix is actually an side-effect of other errors. Fix those, and Perl will see that the my are still in scope.
In reply to Re: global symbol...explict package name
by ikegami
in thread global symbol...explict package name
by rightfield
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |