/ Published in: Perl
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
use Data::Dumper;
my $csv = Text::CSV->new ( { binary => 1 } ) # should set binary attribute.
$csv->column_names ($csv->getline ($fh));
while ( my $hr = $csv->getline_hr( $fh ) ) {
$hash{ $hr->{fieldA} }= $hr->{valueA};
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                