perl CGI (65)
Visual Basic (3539)
New related comments
Number of comments in the last 48 hours
How do I get a file's date / timestamp in perl?
Trim blank space at the beginning and end of a string
2 comments. Current rating: (1 votes). Leave comments and/ or rate it.
Question:How do I strip blank space from the beginning/end of a string? In other language this is usually called Trim().
Answer:The best solution is doing it in two steps (faster than the typical first attempt to do it with one statement.