in reply to Re: Better Way to Do it 2
in thread Better Way to Do it 2

You can even leave out the "for"!

(The <> reads the file into a list and the reverse flips the list, which is then passed to print):

perl -e 'print reverse <>' filename