Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by choroba (Chancellor)
on Sep 04, 2013 at 12:13 UTC ( #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
Node Status?
node history
Node Type: note [id://1052311]
help
Chatterbox?
and not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-09-25 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (291 votes). Check out past polls.

    Notices?