On Apr 6, 2005 2:33 PM, Manish Sapariya wrote:
> Hi List,
> Can somebody throw some light on what the following
> code snippet is doing...
> 
> ==================================
> @Utils::ISA = qw(Exporter);
> @Utils::EXPORT = qw(set_verbose vprint logmsg
>                     convert_size ip2int int2ip
>                     time2str);
> ===========================
> 
> EXPORT if I gues correctly, is exporing the functions
> listed in the modules.
> 
> But then why would one need to export them explicitly.
> 

Because if functions were exported automatically, they would pollute
the namespace of the calling script. Read:
http://perldoc.perl.org/Exporter.html

> I dont have any clue whats the significance of ISA.
> 
> What perldoc shall I see for help on this?
> 

Start here for ISA info:
http://perldoc.perl.org/perlboot.html#A-few-notes-about--ISA
Then read this:
http://perldoc.perl.org/perlobj.html#A-Class-is-Simply-a-Package

HTH,
-- 
Offer Kaye

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to