in reply to Mapping list to hash is dropping list items

I can't test right now but try map { myTrim($_), 1 }, because as you have written it, your code is being interpreted as map { myTrim($_, 1) }.

Replies are listed 'Best First'.
Re^2: Mapping list to hash is dropping list items
by almsdealer (Acolyte) on Mar 12, 2022 at 22:08 UTC

    That was it it! Thank you!