Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Want space instead of tab

by Anonymous Monk
on Nov 20, 2002 at 15:38 UTC ( #214487=perlquestion: print w/replies, xml ) Need Help??

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 ";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://214487]
Approved by newrisedesigns
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2023-09-26 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?