In order to print the whole file reversed, it is easier to slurp it into a string:
perl -e "local $/; print scalar reverse <>" coderef.pl
In reply to Re^2: Switching the Order of Lines
by hdb
in thread Switching the Order of Lines
by BeckyLynn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |