Help for this page
map{ # map is a way of building a loop # map returns a list of the resulting values. ... # again a map, taking the order array and pushing the # related values from the $a hash into @results # giving you the ordered numbers.
map{/(\S+)\s+(-?[\d.]+)/;$a{$1}=$2?$2:''}<DATA>; map{push(@result,defined $a{$_} ? $a{$_} : 999)}@order;