Hi,
I was wondering that if you place a 'use xxxx' within a sub block, does that module get dropped/ garbage collected when the sub exits?
Or does the perl interpreter first looks at all the code and load all modules it thinks it will need before execution.
So if you had a loop and within it you placed a 'use xxx' does it keep loading the module?
or does it load it the once and ignore all other calls to load / use it?
if you are going to use a module anywhere in your script might you as well place it at the top?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I was wondering that if you place a 'use xxxx' within a sub block, does that module get dropped/ garbage collected when the sub exits?
Or does the perl interpreter first looks at all the code and load all modules it thinks it will need before execution.
So if you had a loop and within it you placed a 'use xxx' does it keep loading the module?
or does it load it the once and ignore all other calls to load / use it?
if you are going to use a module anywhere in your script might you as well place it at the top?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts