Hi folks,
Can anybody tell me what I'm doing wrong here? Ok, user has submitted the form and I want to print the variables and values that aren't listed in the @ignore array. %in is the hash gotten from &readparse;. If I take out the foreach checking it prints them all, but when it's in there it won't print anything.
foreach $ignore (@ignore) {
unless ($key = $ignore) {
print FILE "$key|$val\n"
}
}
}
Ta,
adam
Can anybody tell me what I'm doing wrong here? Ok, user has submitted the form and I want to print the variables and values that aren't listed in the @ignore array. %in is the hash gotten from &readparse;. If I take out the foreach checking it prints them all, but when it's in there it won't print anything.
Code:
while (($key, $val) = each %in ) { foreach $ignore (@ignore) {
unless ($key = $ignore) {
print FILE "$key|$val\n"
}
}
}
Ta,
adam