Ken Perl wrote: : ok, let me explain what I mean. : $account = new Account; : then I can get the currency of the two countries, : $account->currency_us; : $account->currency_fr; : : after I freeze the code, a new country jumps out, suppose i need : support Iraq, but now I can't use this, : $account->currency_iraq; : If I want to support this method, I have to modify the constructor : again to add the new country, but what I am looking for is the : solution that doesn't need to modify the constructor again.
You mentioned a database. Is that where the countries are stored? Will a new country appear there? How are you accessing this database? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>