Perl-Sensitive Sunglasses | |
PerlMonks |
Fixed a year later...by perl-diddler (Chaplain) |
on Mar 25, 2013 at 17:54 UTC ( [id://1025358]=note: print w/replies, xml ) | Need Help?? |
The above, today would be written more naturally, like:
No BEGIN's in sight, and a natural 'use module' syntax the same as one would use them if they were in separate files. A few other things would be simpler as well, but they aren't in a form to be published yet... I do learn... using mem with Exporter as I did above, also exports the prototypes. May not be perfect, but looks tidier than using BEGIN blocks and the modules have the benefit of being easily put into separate files with no code changes. Better?
In Section
Seekers of Perl Wisdom
|
|