Now that you're talking about spending money, I really think you should consider using an existing open source package to build your store. Writing it all from scratch is a good learning exercise, but not a good plan when your business and your money are involved, and frankly you're still too much of a newbie at Perl to write a complex commerce system without help. Take a look at
Interchange, for a good system that you can build on.