Don't ask to ask, just ask | |
PerlMonks |
Re: Assignment and use statement in the same BEGIN blockby Discipulus (Canon) |
on Jan 31, 2019 at 08:03 UTC ( [id://1229190]=note: print w/replies, xml ) | Need Help?? |
Hello my friend perlancar, you already had the perfect, concise answer by choroba, but let me expand something that can be useful. use Module; <=> BEGIN { require Module; Module->import( LIST ); } ikegami on SO explains it in this way:
Wich unveils the compiletime/runtime dicotomy. Also very interesting read is Re: RunTime & compile Time Doubt on Perl (many) and the document I always called twelve pillars of wisdom (but i do not remember if it was named this way..) as found in perlmod
other interesting reads are at your disposal in my bibliotheca L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|