in reply to Numbers with commas

That's definitely a new one to me, never bumped into this problem but I would have assumed commas would be ignored when doing mathematical equations.

You could always s/,// for $num though.

$num =~ s/,//;


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid

Replies are listed 'Best First'.
Re: Re: Numbers with commas
by muntfish (Chaplain) on May 13, 2004 at 07:51 UTC

    <pedant>
      $num =~ s/,//g;
    </pedant>

    Sorry...