in reply to Re: How do I remove newline character from a number got from unix commandin thread How do I remove newline character from a number got from unix command
I was using chomp($year) and so not returning expected result. Thanks
The documentation for chomp tells you how chomp works and what it returns.It is the contents of the variable itself that you should verify.
Update: to be concise, I added "the contents of" to the line above.
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
What did it return? - 1
What did you expect? - 2013
How did you verify the result? - by printing
How did you fail to read the documentation? - beginner(sure for perl)
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (119 votes). Check out past polls.