in reply to Re: Re: Re: Re: Re: Re: Usage of our
in thread Usage of our
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re(7): Usage of our
by sierrathedog04 (Hermit) on May 21, 2001 at 22:53 UTC | |
by danger (Priest) on May 21, 2001 at 23:22 UTC |