The following splits the line into words, then kills any embedded commas.
$_ = 'word 15,000 word word 20,000'; my @a = grep {s/(?<=\d),(?=\d)//g || $_} split;
In reply to Re: changing a string to a numeric variable
by pbeckingham
in thread changing a string to a numeric variable
by NovMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |