|
|
| There's more than one way to do things | |
| PerlMonks |
Re: How do I remove newline character from a number got from unix commandby space_monk (Chaplain) |
| on Sep 04, 2013 at 12:34 UTC ( [id://1052324]=note: print w/replies, xml ) | Need Help?? |
|
The newline is attached because you're executing an OS command to do the work. Try using something more operating system agnostic -
e.g.
or...
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||