Again.. Solved.. duh

case /^mailaddr/i, just add a ^ before the matched string.

thanks!
El día Sunday 24 August 2003 5:00 a Pablo Fischer mandó el siguiente correo:
> Hi again!
>
> Im saving some data of a configuration file in scalar var.
>
> My configuration file has something like this:
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> Im choosing them with a case statement:
>
>       switch ($param) {
>           case /mailaddr=/i          { $envio_mail = $valor; }
>           case /replymailaddr/i     { $envio_reply = $valor; }
> }
>
> However Im finding a problem here, cause its stopping twice in
> replymailaddr. (I think that it sounds like mailaddr)
>
> So, how can I fix this?, that in each 'case statement' it will mix mailaddr
> with replymailaddr?
>
> Thanks!
>
> --
> Pablo Fischer Sandoval ([EMAIL PROTECTED])
> http://www.pablo.com.mx
> http://www.debianmexico.org
> GPG FingerTip: 3D49 4CB8 8951 F2CA 8131  AF7C D1B9 1FB9 6B11 810C
> Firma URL: http://www.pablo.com.mx/firmagpg.txt

-- 
Pablo Fischer Sandoval ([EMAIL PROTECTED])
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131  AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt

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

Reply via email to