Do you mean "last" rather than "break"? Also, I don't think "<<" is a valid open mode.
You are right. Too much C recently. As to the open mode, it should read...
## Append to file
open(FH, ">>", "$filename") || die "Cannot open $filename to append: $
+!\n";
If the record is found, why not "exit" rather than just break out of the loop?
Because I don't know what needs to be done next. | [reply] [d/l] |
Because I don't know what needs to be done next.
According to the OP, "if the email exists I would like to have it do nothing"
| [reply] |
Actually, the OP said they want to ask for another email address.
| [reply] |