A couple of additional points from the previous posts. I do agree that trying as many guns as possible before buying one is clearly the way to go. Is there a shooting club near where you live? I find that most of us love to help new people get interested in the shooting sports and are only too happy to let them try our guns to see if they like them. Some times you have to provide the ammo, but in our club my experience has been that even that is often provided by experienced members to help the "newcomers" make their choice.
(1) If you are a true beginner, it is not only about learning how to shoot. How much time do you want to spend learning how to clean and maintain your gun? If the answer is "as little as possible", then I would recommend a Glock. Glocks are not particularly pretty but they are highly reliable, and exceedingly simple to take appart and put back together (you can learn it in under 5 minutes, and do it in under 2 minutes after 2 or 3 tries). They also cost about $ $ 550 to $ 600 for most models. Heckler & Koch pistols are also very easy to take appart and reassemble, and many models are reasonably priced under $ 1000. Guns from S&W and Rugers can be far more complicated in this regard and some models are substantially more expensive (I should know; I own a lot of handguns of different brands and calibers...... far too many, according to my wife).
(2) You did not directly say what you want the gun for. Ideally a .22 is a great first gun to learn how to shoot, but if you want it for self-defense AND PLAN TO BUY ONLY ONE GUN, then a larger caliber would be advisable. Withou going into too much detail, for self defense at home or on the streets, a high velocity high penetration caliber (like .357 mag) is not necessarily a desirable choice. With the proper ammo, a .40 or .45 would be best (in my opinion), IF you can find a gun in one of these calibers that you are truly comfortable with. A 9mm or .38 special are OK, with the right ammo, although I do not like them much for self defense (just my own personal opinion - many people disagree with me on this).
Shoot safe and have a great time,
JRBM