in reply to Using map to Add a Line Breaks to a List
On the other hand, the return value of /(.+)\./ . "\n" is "1\n" because the dot puts the regex in scalar context, in which case it returns true (1) or false ("").
You could work around it by putting a map { "$_\n" } in front of your map.
|
|---|