in reply to Re: map a list
in thread map a list
Thanks.my @result=map { /(\w+)=#(.+)/ ? ($1,fn($2)) : /(\w+)=(.+)/ ? ($1, $2) : ($_, fn($_)) } split(/,/, $str);
Still curious about that segfault tho...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: map a list
by GrandFather (Saint) on Mar 12, 2007 at 19:38 UTC |