in reply to Re^2: How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??
in thread How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??
Whatever floats your boat... I think that's somewhat less readable, though. But not so much so that I'd complain. I'd expect that doing it without the for would probably be more efficient, so if I found your code in a long loop, I'd likely change it for the more verbose form.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??
by Aristotle (Chancellor) on Nov 24, 2005 at 19:55 UTC | |
by sauoq (Abbot) on Nov 25, 2005 at 22:27 UTC |