in reply to using map with compound code blocks to alter strings: a strange result
Being somewhat map challenged, I didn't really grasp what's happening until I tried it this way. Maybe this will help to clarify for someone:
my @strings = qw(boy FALSE bird); @strings = map { unless (/FALSE/) { "\"$_\"" }else{$_}} @strings;
|
|---|