in reply to Read a variable backwards..

Stock answer: what did you try?

We really do want to help you learn but, OTOH, the Monastery code says we shouldn't do your work ($work, homework?) for you. You won't learn much, if we do.

Check out perldoc -f reverse

Stock advice: read How do I post a question effectively? & On asking for help.

Come, let us reason together: Spirit of the Monastery