in reply to Re^10: String Search
in thread String Search
#another way to dump values in record foreach my $tag (@csv_order) { print "Tag = $tag value =$curr_record{$tag} \n"; }
Looks like you have two types of data, as per my example run: "DWLCCN6",'6CBFD7'H.... A string or I guess what is a binary hex value. I would assume that if your DB can export the data in that way, it can import that format also! I wouldn't think that your Perl program has to do any data conversion at all!
So for your questions:
1. Code I gave you already processes records. That "dump subroutine" gets called once per record.
2. "fast" is irrelevant..its not gonna make any difference considering the number of days already spent on this!
I still think your best bet is to take the DB guy out for a nice lunch and have him/her write a simple DB merge thing for you. Then you are done!
|
|---|