I don't know about the current implementation, but shouldn't do eval {
require $module_path } should be more failsafe than a regex? Argueably
slower?
The CPAN indexer, being an automated system, cannot execute random code. Consequently, all code is executed inside Safe.pm with the additional limitation that "require" is stubbed out. In addition, the regex is merely used to decide which line might be a $VERSION assignment prior to eval'ing that line as above.
John
-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748
