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");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to avoid an alphabet and integer next to it in a string?
by runrig (Abbot) on Mar 21, 2014 at 18:08 UTC | |
by piscean (Acolyte) on Mar 21, 2014 at 18:16 UTC |