Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: avoiding newlines when using system calls.

by azatoth (Curate)
on Aug 27, 2001 at 12:15 UTC ( [id://108076]=note: print w/replies, xml ) Need Help??


in reply to avoiding newlines when using system calls.

using chomp() will eliminate your newline woes. Try the following code and note the differences :

my $today = `date +%D`; print $today; chomp($today); print $today;

Azatoth a.k.a Captain Whiplash

Make Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found