- or download this
#!/usr/local/bin/perl
use strict;
use warnings;
%h=('1', 'one', '2', 'two', '3', 'three');
- or download this
@arr=(1,2);
- or download this
foreach $key(keys %h)
{
push(@arr,$h{$key});
}
print @arr;
- or download this
foreach $key(keys %h)
{
push(@arr,$$h{$key});
- or download this
print "@arr\n";
}
- or download this
push @arr, $href->{$key};