The perfect handgun would have the following attributes: automatic, light weight, no recoil, has the ability to mold to different hand sizes, reads your thoughts and knows when to fire itself so you don't have to worry about trigger control, and will hit the bad guy in a place causing instant incapacitation no matter where you're actually aiming.