- or download this
[{name => 'Zambia', abbr => 'ZA'}, {name => 'Afghanistan', abbr => 'AF
+'}, {name => 'Andorra', abbr => 'AN'}, ... ]
- or download this
my $aref = [{name => 'Zambia', abbr => 'ZA'}, {name => 'Afghanistan',
+abbr => 'AF'}, {name => 'Andorra', abbr => 'AN'}];
say $_->{name} for sort { $a->{abbr} cmp $b->{abbr} } @{$aref};'
- or download this
Afghanistan
Andorra
Zambia
- or download this
my $struct = result_of_some_call();
say ref($struct);
- or download this
use Data::Dumper;
my $result = result_of_some_call();
say Dumper $result;