Perl script with recursion bug needs fixing (xml parser)

Anyone familiar with Perl want to try taking on this issue?

calc_cost_of_unit repeats infinitely in some cases

This function suffers from infinite recursion when a unit can morph back into the same unit it was originally.

1 Like