Stas Bekman wrote:
In which case using laundering and eval'ing in the Safe compartment is probably the best idea. Though if I remember correctly Safe has lots of problems (doesn't quite work in certain environments), so I'm not sure how practical it is.


What's the advantage of that over opening the file for reading
and looking for /\$VERSION\s*=\s*([^\s\;]+)/ in it?
(adjust the regex some to handle quoting if needed)

Adjusting the version search regex to handle problems such as the
version is deswcribed on multiple lines, or the version is described
within quotes -- workarounds are possible, but it seems like
documenting that that is what your version checker does and doing it
instead of trying to compensate for all edge cases would be a reasonable
approach.

As usual, i might not know what I'm talking about.

--
[EMAIL PROTECTED]
"perl"

Reply via email to