Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: searching a file

by borisz (Canon)
on Jan 14, 2004 at 16:53 UTC ( [id://321307]=note: print w/replies, xml ) Need Help??


in reply to searching a file

You should check that no username match the username_db
open PAGE, "$data_reg" or die "Can't open $data_reg: $!"; while (my $line = <PAGE>) { ($username_db,$password_db,$email_address_db,$name_db,$spare) = sp +lit "\t",$line; if ($username eq $username_db) { $check++; $found_user++; last; # exit while } } unless ( $found_user ) { $problem = "Unfortunately we cannot find reference to the username s +upplied.<br> Please check with the webmaster of this site."; print "$problem"; exit; } close PAGE;
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-16 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found