|laziness, impatience, and hubris|
Re: How to call a function on each item after a split?by 2teez (Priest)
|on Oct 08, 2012 at 21:40 UTC||Need Help??|
Please, before one shutdown the wonderful solution first given by aitap above on this issue,
Why use chomp and then sepeartely, remove spaces? At the beginning and endling of each value?
I thought, \s+ also covers \n that chomp is suppose to remove?
I modified the OP clean subroutine and both map and grep gave the happy endling.
So, there is really no need for the extra $_ as perviously stated, if the modified subroutine is considered.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me