in reply to Re^2: How to avoid an alphabet and integer next to it in a string?in thread How to avoid an alphabet and integer next to it in a string?
my $molform = <STDIN>;
$molform =~ s/[^a-zA-G0-9]//g;
my $molmass = new Chemistry::MolecularMass;
my $mass = $molmass->calc_mass("$molform");
Just eliminate the Hydrogen:
$molform =~ s/H\d*//g;
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (387 votes). Check out past polls.