Chemistry::Formula — Demeter
No effort is made to evaluate the chemical plausibility of the formula. The example above parses just fine using this module, even though it is clearly not a viable compound. Charge balancing, bond valence, and so on is beyond the scope of this module. Only one function is exported, parse_formula. This takes a string and a hash reference as its ...