[Hartford-pm] Re: [Boston.pm] sprintf sign handling question?

John Saylor johns at worldwinner.com
Wed Jun 23 07:31:05 CDT 2004


hi

not having seen the code, this is a guess.

( 04.06.22 22:54 -0400 ) Bob Mariotti:
> I have a perl program that extracts data from a report file.  Some of 
> the fields (columns) are monetary with a trailing sign (i.e: 1,234.56-).
> However, I am having problems with sign handling.  Can anyone please
> offer suggestions to help me arrive at the following:

i think you're doing too much processing. why do you move the negative
operator at all if you want to keep it in the same place. just treat
them as strings throughout. 

-- 
\js	"don't panic"




More information about the Hartford-pm mailing list