open(TEMP,">$tmpfile") || die "Can't create $tmpfile.\n"; foreach $i (@indata) { chomp($i); ($username,$password) = split(/\|/,$i); if ($username eq $in{'oldname'} && $password eq $in{'oldpw'} && $in{'delete'} ne "yes") { print TEMP "$in{'oldname'}|$in{'newpw1'}\n"; print "

Your password has been changed.

"; print "

Thank you!

\n"; } elsif ($username eq $in{'oldname'} && $password eq $in{'oldpw'} && $in{'delete'} eq "yes") { print "

Your password has been deleted.

\n"; print "

Thank you!

\n"; } else { print TEMP "$i\n"; } } close(TEMP);