open (FILE, "> redo-output.txt") or die "Error: $!"; foreach (@lines) { print FILE "$_\n"; } close(FILE); #### # Since the submit button was pushed, we have to check to see if the username # they typed exists. $passwords is actually the hash we made earlier, but since # we are using just ONE value we call our passwords hash as a scalar: $passwords. # To lookup a hash key to see if it exists, you use: if (exists $hash{"key"}) {}. #### # Since the submit button was pushed, we have to check to see if the username # they typed exists. $passwords is actually the hash we made earlier, but since # we are using just ONE value we call our passwords hash as a scalar: $passwords. # To lookup a hash key to see if it exists, you use: if (exists $hash{"key"}) {}.