The fact that it's foot is attached to the side of the tank is a good sign. Not a guarantee that it will survive, but definately a good sign none the less.
I would look to see if you can identify a mouth. If you can you may try to see if it will take some small foods like a spectrum pellet or a small mysis but nothing bigger.
Good luck to you.