So, I put the module code at the top and the main code goes under 'package main;'. Now, Perl complains about every global variable not being declared. i.e. "$X requires explicit package name". I can fix by using a huge our statement, but I'd like to know if there's a better way. Sorry, if this is too novice a question.
In reply to Global variable declarations with packages by spoulson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |