in reply to Re: Trimming unpack'ed strings
in thread Trimming unpack'ed strings

The  map { s/\s+$//; $_ } is superfluous because the  "A" format of unpack already removes all trailing whitespace.