DEVFYI - Developer Resource - FYI

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

Perl Questions and Answers


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions