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

I have an output that goes to an email but I want data to be seperated by spaces and not tabs. Any suggestions?? I tried the "\s" but that didnt work.
$multfields .= "$data\t"; ..... print MAIL <<"EOF"; ....mail to and from stuff here.... $multfields EOF

Replies are listed 'Best First'.
Re: Want space instead of tab
by Nitrox (Chaplain) on Nov 20, 2002 at 15:44 UTC
    How about:
    $multfields .= "$data ";
    -Nitrox UPDATE: I see you found your answer as I was typing. :-)
Re: Want space instead of tab
by UnderMine (Friar) on Nov 20, 2002 at 16:01 UTC
    Do you need column alignment? How about using :-
    $multfields .= sprintf('someformat', $data);

    Hope it helps
    UnderMine

Re: Want space instead of tab
by Anonymous Monk on Nov 20, 2002 at 15:43 UTC
    Sorry Perl Monks I dont want to waste your time on this. I just put in a space and it works. My mistake for not seeing this right away.
    $multfields .= "$data ";