in reply to Re: How to call a function on each item after a split?
in thread How to call a function on each item after a split?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to call a function on each item after a split?
by CountZero (Bishop) on Oct 09, 2012 at 06:36 UTC |