in reply to Re: How can I deal with those big table data?
in thread How can I deal with those big table data?
#!/usr/bin/perl -w
use strict;
my ($file_list, $file_data)=@ARGV;
my %MYHASH;
#create hash
sub do_hash {
my $filename=shift;
open(FH, $filename) or die "Can't open $filename: $!\n";
while(<FH>){
my ($Name, $Data)=split,1;
while (my ($key, $value)=each (%MYHASH)){
rint $Name,"=>",$Data," ";
}
}
close FH;
}
do_hash('file_data');
exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How can I deal with those big table data?
by graff (Chancellor) on May 19, 2002 at 22:40 UTC |