The map { s/\s+$//; $_ } is superfluous because the "A" format of unpack already removes all trailing whitespace.
In reply to Re^2: Trimming unpack'ed strings
by jwkrahn
in thread Trimming unpack'ed strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |