Note that you can also use tr to squash multiple whitespace characters into single _s:
- tye (but my friends call me "Tye")$_= " This is \t a test\cM\n"; tr/ \t\f\r\n/_/s; print; __END__ prints "_This_is_a_test_"
In reply to (tye)Re: problem with removing space
by tye
in thread problem with removing space
by scarne7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |