in reply to Re: loading modules using 'use'
in thread loading modules using 'use'
Thank you so very much for the step-by-step explanation,
OK, in 2.1.1.1 you say A is loaded and compiled. So, what essentially is the difference betweenas irrespective of wheather BEGIN is there A is loaded and compiled, when 'use A' is encountered. But the BEGIN blocks provides a significant improvement in case of circular dependency/inheritance issues. How does the BEGIN block create such a difference then.A.pm ~~~~~~~~~~ package A; require Exporter; @ISA = (Exporter); @EXPORT = qw(abc); AND A.pm ~~~~~~~~~~ package A; BEGIN{ require Exporter; @ISA = (Exporter); @EXPORT = qw(abc); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: loading modules using 'use'
by ikegami (Patriarch) on Jul 12, 2010 at 22:20 UTC | |
by angshuman (Novice) on Jul 13, 2010 at 03:15 UTC | |
by ikegami (Patriarch) on Jul 13, 2010 at 03:42 UTC |