
Revelation
Novice
Jul 7, 2002, 12:18 PM
Post #7 of 12
(763 views)
|
You may want to follow Tachyon's CGI::Simple, if you're not coding a mod_perl script, and use a __DATA__ token, and self-loader. This *does not* work under mod_perl. use SelfLoader; __DATA__ sub {} # Load on use. Of course, this is best for larger modules, and I would recomend putting major subs such as 'new', and other subs used a lot, above the data token. Or: If you have a load of subs just assigning values, to look into your own AUTOLOAD sub, that will allow value assignment, and create subs on demand.
|