The Islamic view on this issue is that if someone comes to you asking for help, and you can afford to give, then you must give.
That said, beggary as a profession is definitely a problem. To counter that I think we should be genuinely interested in the person’s problem, ask him questions, and help him in the best possible way rather than handing him over a few bills and driving away. For example, if he’s hungry we can can buy him food instead of giving him the money. Also at the level of the society we should encourage our governments to crackdown on such professional begging operations and implement strict laws against it.