$string =~ y/A-Za-z //d;
That'll remove alphabeticals and spaces. However, you may have to specify more characters if there's more garbage in your $string's.
--
perl: code of the samurai
In reply to Re: Re: Parse float from string
by samurai
in thread Parse float from string
by gryphon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |