Thanks a lot

Reading this it's probably always better to use this way of assigning
values. This way it does not stays set to 1 if you decide to switch to
mod_perl later:-)

Etienne

[EMAIL PROTECTED] wrote:

> If the username is equal to admin, $allowed is assigned 1 or else it is
> assigned a value of 0.
>
> Rex
>
> -----Original Message-----
> From: Etienne Marcotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: $a = $b eq "" ? 1 : 0;
>
> $allowed = $username eq 'admin' ? 1 : 0;
>
> Can someone explain me this line? I don't get the ? 1 : 0 part
>
> They say it need to be used instead of $allowed = 1 if $username eq
> 'admin'; for a mod_perl env.
>
> Etienne
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to