Help for this page
#!/usr/bin/perl ... my $href = shift; sum0 map /cost/ ? $href->{$_} : costof( $href->{$_} ), keys %$href; }
7400 is the total where cost is found