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

Re: How do I remove newline character from a number got from unix command

by choroba (Cardinal)
on Sep 04, 2013 at 12:13 UTC ( [id://1052311]=note: print w/replies, xml ) Need Help??


in reply to How do I remove newline character from a number got from unix command

As to why: because date appends it to its output.

As to how: chomp

Update: As to TIMTOWTDI and portability: localtime

1900 + (localtime)[5]
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-18 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found