!/usr/local/bin/perl use CGI ':standard'; print header(); print start_html(); $name=param('name'); open FILE, "user/$name" or die "Error: $!\n"; my %data = (); while ( my $line = ) { chomp $line; my ($key, $value) = split(/\s*:\s*/, $line); $data{$key} = $value; } close FILE; #this section checks if the password is correct and lets you into the game or tells #you that the password was incorect if (param('password') eq $data{password}) {# if the password is correct you enter the game my $query = CGI->new(); my $cookie = $query->cookie(-name=>'username', -values=>'param('name')', -expires=>'+1h', -domain=>'.perlmonks.org'); print $query->header(-cookie=>$cookie); print URI: http://www.storm.prohosting.com/cgi-bin/warropr.pl; } if (param('password') ne $data{password}) {#this part tells you if the password was not open (NOPASS, "../password.htm"); for $line () { print $line; } } close NEWFILE ; close NOPASS; end_html();