K
Kill Joy
Hi all..
Excuse since I'm a newbie...
I have an hash of hashes but there is something wrong in my code.
# If an item is found for the second time
if (exists $hash{ $codart }) {
# increase the quantity of the article $codart
$hash{ $codart }{ q }++;
print "\n$codart $qq EXISTS\n";
} else {
# insert the product
$hash{ $codart } = {
desc => $desc,
q => $quant,
price => $price };
}
How to do it?
Thanks.
Regards.
G.
Excuse since I'm a newbie...
I have an hash of hashes but there is something wrong in my code.
# If an item is found for the second time
if (exists $hash{ $codart }) {
# increase the quantity of the article $codart
$hash{ $codart }{ q }++;
print "\n$codart $qq EXISTS\n";
} else {
# insert the product
$hash{ $codart } = {
desc => $desc,
q => $quant,
price => $price };
}
How to do it?
Thanks.
Regards.
G.