in reply to Molecular weight of Protein

You could always split on the whitespace as well...
my ($short_name, $rest) = split(' ', $name);

Bioinformatics

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.