This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor Config.pm to set @EXPORT_OK from keys %Export_Cache
authorNicholas Clark <nick@ccl4.org>
Wed, 16 Feb 2011 17:15:46 +0000 (17:15 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 17 Feb 2011 16:28:36 +0000 (16:28 +0000)
commitc6b7b56c8549a3570120ea861853b7f5cbb02733
treeac915a82f7435cbe49577475bdd71424e7e272f7
parent2dc5eb262048fb23343826c58c3b2c0af832252a
Refactor Config.pm to set @EXPORT_OK from keys %Export_Cache

The refactor generates %Export_Cache at perl build time, and hence avoids
Config.pm running a map on load. The change also results in @Config::EXPORT
containing shared hash key scalars, which saves 124 bytes on this platform,
modest, but everything helps.

Also change the build script to programmatically generate the function stubs
in Config.pm, instead of having the list duplicated by hand.
configpm