One way of doing this:
chop ($username);
if ($username eq "") {
       .......................
}
This will at least ensure that a carriage return
is not included in the  scalar


PJD


----- Original Message -----
From: "Matthew Harrison" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 5:32 PM
Subject: first glimpse of regex


> i need to say something like
> if $username = "" then ...
>
> where "" is literally nothing. i want to match it ONLY if the variable is
> totally empty.
>
> this is my first experience with regex so what should this be?
>
> --
> Matthew Harrison
> Internet/Network Services Administrator
> Peanut-Butter Cheesecake Hosting Services
> Genstate
> www.peanutbuttercheesecake.co.uk
>
> --
> 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