murugu has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks!
While writing modules(with out OOP concepts) what is the need for
require Exporter; @ISA=("Exporter");
Why do we need to inherit Exporter in our current package?
Can we use "use Exporter" instead of both the lines above? Without "Import" how will be the symbols imported?
By writing the 2 lines above does the symbols present in the current package will be automagically exported to the program where we use this package? If so how?
Thanks in advance.
Regards,
Murugesan Kandasamy.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Module Loading via Exporter doubt.
by Joost (Canon) on Jul 11, 2005 at 13:40 UTC | |
Re: Module Loading via Exporter doubt.
by castaway (Parson) on Jul 11, 2005 at 13:30 UTC | |
by JediWizard (Deacon) on Jul 11, 2005 at 13:56 UTC | |
Re: Module Loading via Exporter doubt.
by broquaint (Abbot) on Jul 11, 2005 at 13:32 UTC | |
Re: Module Loading via Exporter doubt.
by Fletch (Bishop) on Jul 11, 2005 at 14:25 UTC | |
Re: Module Loading via Exporter doubt.
by tlm (Prior) on Jul 12, 2005 at 01:15 UTC | |
Re: Module Loading via Exporter doubt.
by garrison (Scribe) on Jul 12, 2005 at 05:52 UTC |
Back to
Seekers of Perl Wisdom