Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Check For Dupes In FLat DB Before Adding

by chas (Priest)
on Dec 15, 2005 at 05:49 UTC ( [id://516868]=note: print w/replies, xml ) Need Help??


in reply to Re: Check For Dupes In FLat DB Before Adding
in thread Check For Dupes In FLat DB Before Adding

Do you mean "last" rather than "break"? Also, I don't think "<<" is a valid open mode.
(Update/comment: If the record is found, why not "exit" rather than just break out of the loop? And otherwise just fall through to the append sub.)
  • Comment on Re^2: Check For Dupes In FLat DB Before Adding

Replies are listed 'Best First'.
Re^3: Check For Dupes In FLat DB Before Adding
by nedals (Deacon) on Dec 15, 2005 at 06:24 UTC
    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.
      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"
        Actually, the OP said they want to ask for another email address.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://516868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2025-02-08 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.