Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: How to Remove Commas ?

by roboticus (Chancellor)
on Mar 27, 2012 at 12:22 UTC ( [id://961912] : note . print w/replies, xml ) Need Help??

in reply to How to Remove Commas ?


I've not found a "search and replace" command to replace the commas with "nothing", allowing direct numeric manipulation of the scalar variables.


$ cat #/usr/bin/perl use strict; use warnings; use feature ':5.10'; my $t = "1,234,567.89"; $t =~ s/,//g; say $t; $ perl 1234567.89


When your only tool is a hammer, all problems look like your thumb.