in reply to Re: Parse float from string
in thread Parse float from string
$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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Parse float from string
by mpeppler (Vicar) on Nov 05, 2002 at 00:40 UTC | |
by lanthruster (Initiate) on Nov 24, 2019 at 01:18 UTC |