elusion has asked for the wisdom of the Perl Monks concerning the following question:
- p u n k k i d "Reality is merely an illusion, albeit a very persistent one." -Albert Einsteinsub login() { print "logging in...\n"; $pop3 = Net::POP3->new($host); LOGIN: if ($numb = eval'$pop3->login("$username", "$password"'){ system("cls"); print "logged in...\n"; $status = 1; $numb =~ s/^0E0$/0/; print "you have $numb messages...\n"; $variable = $numb; } else { print $numb; print "couldn't login, try again?[y/n] "; $answer = <STDIN>; if ($answer =~ /y/i) { login(); } } goto PROMPT; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Login Error
by tye (Sage) on Aug 01, 2000 at 00:20 UTC | |
|
Re: Login Error
by slurp (Initiate) on Aug 01, 2000 at 04:28 UTC | |
by Fastolfe (Vicar) on Aug 01, 2000 at 22:40 UTC |