I was using chomp($year) and so not returning expected result. Thanks
So...
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.
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
In reply to Re^3: How do I remove newline character from a number got from unix command
by Happy-the-monk
in thread How do I remove newline character from a number got from unix command
by tousifp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |