BikePower
view release on metacpan or search on metacpan
BikePower/HTML.pm view on Meta::CPAN
}
require BikePower;
my $bp_obj = new BikePower '-no-ini' => 1;
foreach (['frontalarea', 'A_c'],
['transeff', 'transmission_efficiency'],
['rollfriction', 'rolling_friction'],
['weightcyclist', 'weight_cyclist'],
['weightmachine', 'weight_machine'],
) {
my($cgidef, $method) = ($_->[0], $_->[1]);
if (exists $bikepower_def{$cgidef}) {
my $eval = '$bp_obj->' . $method . '($bikepower_def{$cgidef})';
eval $eval;
warn $@ if $@; # XXX
}
}
$bp_obj;
}
1;
( run in 0.573 second using v1.01-cache-2.11-cpan-5735350b133 )