in reply to Code Interpretation
Doesn't look like it does anything. Here is what I started with:
and here is what the output looks like:use strict; use Data::Dumper; my @allrefs; my %uni_refs = ( qw [ a 1 b 2 c 3 ] ); print Dumper \%uni_refs; my @refs = @allrefs[ sort {$a <=> $b} values %uni_refs ]; print Dumper \@allrefs; print Dumper \@refs;
Question is: what was the intended outcome?$VAR1 = { 'c' => '3', 'a' => '1', 'b' => '2' }; $VAR1 = []; $VAR1 = [ undef, undef, undef ];
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Code Interpretation
by Perl_Ally (Novice) on Jul 28, 2014 at 15:55 UTC | |
by blue_cowdawg (Monsignor) on Jul 28, 2014 at 17:06 UTC |
In Section
Seekers of Perl Wisdom