s/\s+//g is preferrable over s/\s//g. It allows the substitution to do as much work in each match as possible. Single \s makes it stop more often than necessary.
In reply to Re: perl rules
by diotalevi
in thread perl rules
by tos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |