in reply to Re: Trimming unpack'ed stringsin thread Trimming unpack'ed strings
The map { s/\s+$//; $_ } is superfluous because the "A" format of unpack already removes all trailing whitespace.