Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: avoiding newlines when using system calls.

by azatoth (Curate)
on Aug 27, 2001 at 12:15 UTC ( #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?

Comment on Re: avoiding newlines when using system calls.
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2015-11-27 06:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls