diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-04-28 21:27:40 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 21:36:36 -0700 |
commit | 39e3b1bcb1568b34b8b8303630cb1bc8dad1eb14 (patch) | |
tree | fe107f808df608637b478d98adc1ea50c3e15161 /run.c | |
parent | 3dd32f5688d5d8551d930973f2fac3251cba505d (diff) | |
download | perl-39e3b1bcb1568b34b8b8303630cb1bc8dad1eb14.tar.gz |
op.c:ck_glob: Check PL_globhook before loading File::Glob
By loading File::Glob when there is no CORE::GLOBAL::glob, we just end
up calling Perl_load_module for every glob op, since File::Glob no
longer uses CORE::GLOBAL::glob by default.
We could just as well check whether PL_globhook is set, which would
be faster.
(File::Glob sets PL_globhook when it loads. In 5.14, it didn’t
set anything, but ck_glob itself would set CORE::GLOBAL::glob to
File::Glob::csh_glob.)
Diffstat (limited to 'run.c')
0 files changed, 0 insertions, 0 deletions