On 4-May-06, at 4:14 PM, Louis J Scoras wrote:

>> If you find yourself trying Perl before Ruby, however, seek
>> psychiatric help immediately :)
>
> Sometimes you'll find a machine that doesn't have ruby installed.
>
> Besides, it's not that bad.  Really I promise it won't hurt a bit.
>
>    $ perl -ne 'push @a, $_; END { print reverse @a }'
>
> It's not any worse than the awk (but not a pretty as the ruby).  Like
> it was said before, use the tools you have:

If you are going to resort to perl then you should probably use

$ perl -e 'print reverse <>'

Mike

-- 

Mike Stok <mike / stok.ca>
http://www.stok.ca/~mike/

The "`Stok' disclaimers" apply.