Re: stupid perl programming problem

2000-11-02 Thread Rick Forrister
[EMAIL PROTECTED] said: > sub init_words { open(WORDLIST,"wordlist") || die "can't open > wordlist"; > while($name = ) > { > chomp($name); > $word=; > chomp($word); > $words{$name}=$word; > } > close(WORDLIST); > } > > It ask you for your name then your password. If

Re: stupid perl programming problem

2000-11-02 Thread Charles Galpin
On Wed, 1 Nov 2000, Larry Mintz wrote: > It can't this stupid program to terminate properly. > sub init_words > { > open(WORDLIST,"wordlist") || die "can't open wordlist"; > while($name = ) > { > chomp($name); > $word=; > chomp($word); > $words{$name}=$word; > } > close(WOR

RE: stupid perl programming problem

2000-11-02 Thread John Horne
On 02-Nov-00 at 02:49:26 Larry Mintz wrote: > It can't this stupid program to terminate properly. > Here it is: > > It ask you for your name then your password. If it doesn't match it goes > into a loop until it gets it right. The problem is when you enter the > correct password for the correct

stupid perl programming problem

2000-11-01 Thread Larry Mintz
It can't this stupid program to terminate properly. Here it is: # /usr/bin/perl -w init_words(); print "What is your name ?"; $name =; $name =~ s/\W.*//; $name =~ tr/A-Z/a-z/; chomp($name); print "Hello $name\n"; print" What is the secret password ?->"; $guess=; chomp($guess); $pw=$words