Actually, that is not the case. Try it with a variable name other than $a or $b (which are exempt from explicit package qualification due to their usage in sort routines). Also, using my($a) wouldn't work because lexicals won't be available to the calling program. Lastly, your 'require Exporter' statement is unnecessary because you aren't exporting anything (for that you'd need to also set the @ISA array and one of the EXPORT arrays (or roll your own import() function).
For further info see: perlman:perlmod and perlman:perlmodlib. You might also want to check out using the h2xs utility to create your module boilerplate.
In reply to Re(7): Usage of our
by danger
in thread Usage of our
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |