Gives: 123456.78my $money = '$123,456.78'; $money =~ tr/$,//d; print $money;
--
I'd like to be able to assign to an luser
In reply to Re: Removing commas and dollar signs from a variable.
by Albannach
in thread Removing commas and dollar signs from a variable.
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |