Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Let me see if I got this straight...
Suppose I have an online store where I sell goods to several different countries each using its own currency. I could say (for Brazil's case): And repeat this as many times necessary for each country. Then use set everything up, and use DBI to get the items from a shopping cart as usual (name, price, other attributes). Then my app would work as if my currency variables had been declared at startup, so I wouldn't have to do a 'select' myself to find out what the price of an item was in Reals? That's a bit confusing... Let me try this instead. Instead of doing two selects (one for the product, and one for the currency), I could have the currency loaded as an object and do my select on the product as if the currency information had always been there? #!/home/bbq/bin/perl # Trust no1! In reply to RE: Re: Tangram
by BBQ
|
|