In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/73560ddf6122a9507cd835ca87b431a3b94723c8?hp=06cc5386dd28f60bb72cc21229809ac27bfe7086>
- Log ----------------------------------------------------------------- commit 73560ddf6122a9507cd835ca87b431a3b94723c8 Author: Karen Etheridge <et...@cpan.org> Date: Fri Jul 5 14:02:06 2019 -0700 make variable names consistent in this example ..as suggested by Andre Schultz at https://github.com/OpusVL/perldoc.perl.org/issues/57 ----------------------------------------------------------------------- Summary of changes: pod/perlintro.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlintro.pod b/pod/perlintro.pod index 5c168c18e1..5ba3afbeaa 100644 --- a/pod/perlintro.pod +++ b/pod/perlintro.pod @@ -248,8 +248,8 @@ To get at hash elements: You can get at lists of keys and values with C<keys()> and C<values()>. - my @fruits = keys %fruit_colors; - my @colors = values %fruit_colors; + my @fruits = keys %fruit_color; + my @colors = values %fruit_color; Hashes have no particular internal order, though you can sort the keys and loop through them. -- Perl5 Master Repository