in reply to print last line

There is probably a smarter way than this:
perl -ne '$l=$_ ; END { print $l; }'