--- Patrick Diffley <[EMAIL PROTECTED]> wrote:
> 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
'chop' has been so heavily misused that, if I recall correc
AIL 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 i
--- Matthew Harrison <[EMAIL PROTECTED]> wrote:
> 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 Harris
On Tue, 19 Mar 2002, Matthew Harrison wrote:
> 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?
if(!$username) {
}
An e
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