This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In embed.pl, refactor readvars() to return a sorted list.
authorNicholas Clark <nick@ccl4.org>
Sun, 7 Aug 2011 14:04:26 +0000 (16:04 +0200)
committerNicholas Clark <nick@ccl4.org>
Sun, 7 Aug 2011 14:04:26 +0000 (16:04 +0200)
commitadf34b4b4a293cee5d4f61b17ac556417fa34709
tree73ff6eb1c195602c14213774d8885fc360c9b817
parent944f470e93f75e083f15437b49be527ccd2468ba
In embed.pl, refactor readvars() to return a sorted list.

Previously it would assign to the hash reference passed to it. However, the
rest of the code only ever used the keys of that hash, in sorted order, so it
is simpler to change readvars() to return that list directly.

Also move the declaration of the lexical $sym down to its first point of use.
regen/embed.pl