in reply to Re^4: Basic list manipulation, and a bit of map() confusion...
in thread Basic list manipulation, and a bit of map() confusion...
One of the items the OP processes is 'five'. That item does not match (does not contain 'x'), so tr/// and s/// would both be "false" as far as the ternary is concerned (and so would be removed from the list in your code). Nevertheless, the OP does what that element in the resulting list because it's not an empty string after the replacement happens.
|
|---|