in reply to Sed to perl conversion-- flipping lines in a file

perl would be overkill for the job. I'd use sort:
sort -n -r <yourfile>

Abigail