I haven't tried it on my 986 yet, but I imagine it's not much different than other cars.
If you have a compressor, I've had good luck with a Harbor Frieght air hammer and pointed bit right into center hole of the axle.
I hope you didn't flare the end of the axle when you beat on it with a mallet. If so, you may want to grind it down, before you try to push it back.
Here's an extreme case, but I doubt yours is this bad.
https://www.youtube.com/watch?v=SFScIV92ODE
Good luck!