Actually your code assigns the return values from clean() which are either 1 or the empty string. The function uses the side effect of changing $_ but could be modified to return the trimmed string instead.
In reply to Re^2: How to call a function on each item after a split?
by Lotus1
in thread How to call a function on each item after a split?
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |