Thread hash automatischfüllen (22 answers)
Opened by Gast at 2006-08-09 13:27

Gast Gast
 2006-08-09 13:27
#68775 #68775
Hallo,

ich möchte gerne ein Hash in einer Schleife füllen lassen. So wie ich es bisher habe steht immer nur der letzte key und wert drinne obwohl es 6 sein müßten.
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
foreach my $port_address_table (@port_address_table) {
foreach my $mac_address (@mac_address_result) {
if ($mac_address eq $port_address_table){
if ($mac_address =~/[a-fA-F1-9]$/){
open(DATEI,">>d:/mac/mac_tabel.txt");
print DATEI "$mac_address\n";
close DATEI;
push (@mac_tabel_result, $mac_address);
%mac_ip=(
$mac_address => $ipaddress,
);

ein auszug aus dem Script.

Kann mir einer sagen warum man sich nicht anmelden kann? Wenn man den Link öffnet der Bestätigungsmail kommt ein Fehler.\n\n

<!--EDIT|renee|1155116421-->

View full thread hash automatischfüllen