Chemistry::Mol seems to do all that, including parse the formula.
$ perl -MChemistry::File::Formula -e'my $mol = Chemistry::Mol->parse(" +Pb(CO3)2",format=>"formula");print $mol->mass,$/' 327.2178 $
After Compline,
Zaxo
In reply to Re: Regular Expresions and atomic weights
by Zaxo
in thread Regular Expressions and atomic weights
by hokie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |