in reply to Re^2: if block inside map
in thread if block inside map
You can also leave off the else branch, in which case map would return the empty string (not sure why not undef) when the if-condition isn't true... (Emphasis added)
See Re: Map Function Weirdness and Re: Map Function Weirdness (and ikegami's elaboration thereto Re^2: Map Function Weirdness) to Map Function Weirdness.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: if block inside map
by Eliya (Vicar) on Nov 11, 2011 at 23:57 UTC |