chrisbarton has asked for the wisdom of the Perl Monks concerning the following question:

I am now losing text spaces when I pass my lines of text to an email.
When I do:
print "$requests";
I get:
Date     : 2002-03-26 16:46:00

but when I send it to MAIL:
print MAIL "$requests";
In the email the line is:
Date : 2002-03-26 16:46:00
ie all the extra spaces have been removed.
any idea why this is?

Replies are listed 'Best First'.
Re: losing spaces in text line
by derby (Abbot) on Mar 29, 2002 at 15:14 UTC
    mail reader in HTML-view mode vice plain-text-view mode?

    -derby

Re: losing spaces in text line
by moebius (Novice) on Mar 29, 2002 at 18:49 UTC
    There is nothing inherent in SMTP that does this, so you will have to provide more info.

    What does your open line look like, what builds $requests, what mods are you importing/using? Things like that will make this much more solvable.