Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: code that runs at module loadingby rrwo (Friar) |
on Dec 07, 2004 at 20:34 UTC ( [id://412998]=note: print w/replies, xml ) | Need Help?? |
Having the script that uses the constant generate the code at compile time (in a BEGIN block) is one of the wonderful features of Perl that distinguishes it from other languages. Why not make use of it?
In Section
Seekers of Perl Wisdom
|
|