Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: searching a file

by borisz (Canon)
on Jan 14, 2004 at 16:53 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2023-06-05 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (26 votes). Check out past polls.

    Notices?