On Saturday, May 4, 2002, at 09:53 , Sven Bentlage wrote:
> Hi!
p1: it is best not to post from 'root' mail accounts.
civility and decency and all - there are enough annonymouse accounts
out there if you wish that. leave root@<domain> for other things.
[..]
> sub get_pw {
> ($dbh etc exist)
> while ( ( @data ) = $get_pw->fetchrow ) {
> [HTML interface to enter password}
> }
> return @data;
>
> }
>
> sub pageone {
> my pass = param('password');
>
> if ( @data[-1] eq $pass ){ [HTML] } !!!! and here is the
>problem. I
> only get an empty string ("NULL"
> !!!! value. Pressing enter gets
> me into the members area, anything
> !!!!!else the errorroutine.
> ...
> else {&errorroutine}
from the code section here I do not see you
a) calling get_pw
b) getting the return from get_pw
eg:
my @got_from_pw = get_pw;
hence it looks like you are trying to do a 'side effect trick'
of having @data globally declared - and hence open to a
multitude of sins and gregarious unexpected moments.
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]