in reply to Re: hash table with three input files
in thread hash table with three input files

Thanks a lot for your help ! moritz

Concerning your remark to overcome the problem, could this work ? Thanks

while (<$file>){ chomp; my @items = split m/;/, $_; if (defined($items[1])){ push @{$prices{$items[0]}, $items[1]; } else{ # add a ";" when there is a value void $prices{$items[0]} = "$prices{$items[0]}".";"; } }