Perl : hachage
MethJy
-
MethJy -
MethJy -
arf j ai un petit probleme avec un hachage voila je n arrive pas a additionner les valeurs de deux hachages ... pourtant ce sont bien des scalaires alors ou est la couille ???!!!
%hash = (
1 => 3,
2 => 8
);
%hashb = (
1 => 5,
2 => 3
);
@chaine = keys(%hash);
foreach (@chaine)
{
$hash{$_}+ $hashb{$_}= $hashc{$_};
print"$hashc{$_}";
}
thx d avance
%hash = (
1 => 3,
2 => 8
);
%hashb = (
1 => 5,
2 => 3
);
@chaine = keys(%hash);
foreach (@chaine)
{
$hash{$_}+ $hashb{$_}= $hashc{$_};
print"$hashc{$_}";
}
thx d avance
A voir également:
- Perl : hachage
- Denon perl pro test - Accueil - Audio
- Active perl - Télécharger - Édition & Programmation
- DzSoft Perl Editor - Télécharger - Édition & Programmation
- Comment lire un fichier .pl perl ? - Forum Windows
- Perl: transformer un fichier en package ✓ - Forum Perl