Hi, do you understand my pseudo code, i think it should work for your hash?
Regards Martin > thanks, > > But i have a list of 65 countries, and I only want to implement for > them. Also, as you said, definitely for some, prefix length is only 1 > digit, while for others, it is 2 or 3 digits. So, I was thinking to > build a hash and then implement this. > Also, my aim is not actually to get the country name. > On the basis of the prefix, I have the corresponding callrate/sec. > Foe ex, > > Country_Name Country_Code Rate/sec > Argentina 54 RM0.99 > So, if the longest prefix match of the 6th field(called_number) of my > CSV file matches with country code of Argentina, then read the 13th > field(Duration), divide it by 60 and multiply it by the rate/sec. of > Argentina and write the result into the 14th field. > > please advice on how something like this can be achieved?? > > Thanks, > Mihir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/