in reply to How to call a function on each item after a split?
my ($item1, $item2, $item3, $item4, $item5) = map {clean($_)} split(/\ +|/, $str);
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to call a function on each item after a split?
by Lotus1 (Vicar) on Oct 08, 2012 at 18:54 UTC | |
by CountZero (Bishop) on Oct 09, 2012 at 06:36 UTC |