diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-06-18 14:42:07 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-06-22 16:53:50 +0200 |
commit | 5ec06e76dc20e3154110c2955f25db63f00c527d (patch) | |
tree | 1a8487933aa9373cfaf2e1dcc579621e672de653 /dist/Cwd/Cwd.xs | |
parent | d220eb00ef3acc7b8eb92c164c58ff946a556955 (diff) | |
download | perl-5ec06e76dc20e3154110c2955f25db63f00c527d.tar.gz |
In Cwd::_win32_cwd() avoid a string eval when checking if we're miniperl.
To allow ExtUtils::MakeMaker to run tests as if it's "miniperl" we need to avoid
taking any sort of reference to the typeglob or the code in the optree, as its
test modules are loaded later than Cwd. Previously this was done with a string
eval, but that was causing problems (for unclear reasons - rt.cpan.org #56225).
Using a symbol table lookup and *foo{THING} syntax avoids the string eval.
Evolved from a suggestion by Reini Urban.
Diffstat (limited to 'dist/Cwd/Cwd.xs')
0 files changed, 0 insertions, 0 deletions