How do you print out the next line from a filehandle with all its bytes reversed?

Q

How do you print out the next line from a filehandle with all its bytes reversed?

✍: Guest

A

print scalar reverse scalar <FH>
Surprisingly enough, you have to put both the reverse and the <FH> into scalar context separately for this to work.

2013-09-04, 2019👍, 0💬