Manish Sapariya <mailto:[EMAIL PROTECTED]> wrote:
: Can somebody throw some light on what the following : code snippet is doing... : : : ================================== : @Utils::ISA = qw(Exporter); This allows the Exporter subroutines to be used by this module as if they were defined in this module. : @Utils::EXPORT = qw(set_verbose vprint logmsg : convert_size ip2int int2ip : time2str); This forces these subroutines to be imported by default into the calling packages name space. : EXPORT if I gues correctly, is exporing the functions : listed in the modules. : : But then why would one need to export them explicitly. According to the docs, it is actually a frowned upon practice to automatically export anything. Without the second statement above, no functions would automatically be exported. : I dont have any clue whats the significance of ISA. I think it is called Class Inheritance. : What perldoc shall I see for help on this? Read the Exporter.pm docs. Also in perlmod read the "Perl Classes" section. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>