Question: What's the significance of @ISA, @EXPORT @EXPORT_OK %EXPORT_TAGS list & hashes in a perl package? With example?
Answer: @ISA -> each package has its own @ISA array. this array keep track of classes it is inheriting. ex:package child;@ISA=( parentclass); @EXPORT this array stores the subroutins to be exported from a module.@EXPORT_OK this array stores the subroutins to be exported only on request.
@ISA -> each package has its own @ISA array. this array keep track of classes it is inheriting. ex:package child;@ISA=( parentclass); @EXPORT this array stores the subroutins to be exported from a module.@EXPORT_OK this array stores the subroutins to be exported only on request. Source: CoolInterview.com
Rules to Post Answers in CoolInterview.com:- There should not be any Spelling Mistakes. There should not be any Gramatical Errors. Answers must not contain any bad words. Answers should not be the repeat of same answer, already approved. Answer should be complete in itself.
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.