in reply to Pre-caching large constants
The logic to control the reading in is left up to you, anyway, others seem to have a handle on part of that, while I don't have the time at the moment. I don't really like the AutoLoader solution, it seems nifty, but then you get too many reports from people who install the module incorrectly (just copying the pm file to a directory in @INC, or using 'use lib', when you really need to do the 'perl Makefile.PL, make...etc.), and then ask "Why doesn't this work?".__DATA__ SQRT5|2.blahblahblah SQRT2|1.blahblahblah E|2.more blahblah
And then again, a few extra 500 byte strings really shouldn't make all that big of a difference...
|
|---|