This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In makedef.pl, avoid creating %PLATFORMS just for one existence check.
authorNicholas Clark <nick@ccl4.org>
Thu, 28 Jul 2011 13:05:26 +0000 (15:05 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 1 Aug 2011 09:53:57 +0000 (11:53 +0200)
commit29200a82a647b7edaead2daef398fbce178fb7c7
tree4a662a2ee9d84d9bb355b4b341be910edccd2599
parent0dc3711c7435529d221445ddb0c229ce2750445f
In makedef.pl, avoid creating %PLATFORMS just for one existence check.

A single linear search of @PLATFORMS is simpler and possibly even faster
than building a hash from @PLATFORMS, making one lookup, then discarding the
hash.

Add a block to limit the scope of @PLATFORMS to the code that uses it.
makedef.pl