in reply to Hash Values into Array
use strict; use Data::Dumper; my %hash = ( 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', ); my @array = values %hash; print Dumper(\@array);
|
---|
In Section
Seekers of Perl Wisdom
in reply to Hash Values into Array
use strict; use Data::Dumper; my %hash = ( 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', ); my @array = values %hash; print Dumper(\@array);
|
---|