in reply to Re: adding comma and two decimals
in thread adding comma and two decimals

Just as a comment, and it gets said over and over again, but if you had added the line(s)
use strict; use warnings;
..at the top of your code, then you would have received this most helpful warning message:
Argument "1,000" isn't numeric in sprintf at \ /tmp/deleteme.pl line 9.

Replies are listed 'Best First'.
Re^3: adding comma and two decimals
by Anonymous Monk on Nov 25, 2005 at 02:20 UTC
    Actually I have that at the top of the script and I didn't recieve a single error anywhere.
    #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); use warnings; use strict; use CGI::Cookie; use CGI qw/:standard/; use DB_File;
    Is my script header.

    Thanks for the other suggestion, that worked!