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;
There is no Extraterrestrial life
There aren't any suitably capable Extraterrestrials
Interstellar travel is too difficult
We're too uncool / not worth the trouble
What do you mean they haven't visited?
Results (478 votes). Check out past polls.