This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Ensure that the C<exists &Errno::EFOO> idiom continues to work as documented.
authorNicholas Clark <nick@ccl4.org>
Mon, 7 Mar 2011 10:27:17 +0000 (10:27 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 7 Mar 2011 10:32:52 +0000 (10:32 +0000)
commit5d8ab95357a99a13e919b0e5c19f9a7abb06167d
tree14332a3aeadbad487ed2824253d20828aefc3287
parent7c579eed878fc49f1db8118b45c262d16571a5c1
Ensure that the C<exists &Errno::EFOO> idiom continues to work as documented.

A change post-5.12 (probably 42607a60df6df19b) caused the documented idiom not
to work if Errno was loaded after the C<exists> code had been compiled, as
the compiler implicitly creates typeglobs in the Errno symbol table when it
builds the optree for the C<exists code>.
ext/Errno/Errno_pm.PL
ext/Errno/t/Errno.t