puterboy has asked for the wisdom of the Perl Monks concerning the following question:
Then when I include that package using 'use mypackage;', the namespace elements are available to my main routine.require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(name1 name2 name3 ...);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exporting namespace elements when package is in same file as main
by BrowserUk (Patriarch) on Feb 02, 2014 at 17:41 UTC | |
by puterboy (Scribe) on Feb 02, 2014 at 17:55 UTC | |
|
Re: Exporting namespace elements when package is in same file as main (BEGIN)
by tye (Sage) on Feb 02, 2014 at 19:57 UTC | |
|
Re: Exporting namespace elements when package is in same file as main
by tobyink (Canon) on Feb 02, 2014 at 21:48 UTC |