I'm using Mail::Sender for attaching .txt files. About a week ago, the users
began complaining that some of the dollar amounts in the attachment records
had "lost" the decimal point. We're on HP 11i. ( No patches have been
applied for several months). Perl 5.6

I can recreate the problem. The original file on the Unix file system is
correct and it has a .txt file extension. Each time I run the perl script to
mail it as an attachment the same records "lose" their decimal points.

Here's a couple of strange things..

1. The dollar amount in the record is the only field that is NOT double
quoted. If I double quote this field in all records, then a totally
different set of records loses the decimal point. i.e. first run, the
decimal was lost in records 4 and 10. Double quote this field for all
records and 6, 7 and 11 lose the decimal point. Each of the scenarios is
repeatable, by quoting and unquoting the dollar amount field in all records
and rerunning the perl script.

2. If I change the extension to .dat, all records are preserved. i.e. I
don't have a problem.

You might see the simple fix being changing the naming convention, but alas,
shop standards.

Here's the direction that I'm headed while I wait for a reply from this
post:

I thought it might be a mime-type oriented problem, so in the mail::sender
docs, I found a parameter for Mail::Sender called 'ctype'. I assume it
stands for content type, but the description doesn't seem to indicate that
it applies to attachments. I test for differences using this parm. (text/css
?)

This perlscript is really a .exe (PerlApp) I'm about to test with the script
to try an eliminate any problems with the exe...

Don't know what might have changed to cause this, or where to go looking.
Appreciate reference to any specific areas to R in the FM, or other
direction.

TIA,
Mark Sutfin

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to