At 05:45 PM 07/16/01 -0400, Ken Fair wrote:
>Hello Group
>
>Can somebody tell me what the two of these are doing.
>if ($in{'firstname'} =~ /^\s*$/ ||
>> $in{'lastname'} =~ /^\s*$/ ||
>> $in{'email'} =~ /^\s*$/ ||
if any are blank. /^\s*$/ match the start of the line, zero or more white
space
Hey Ken,
> I guess the English version or translated in words. I do not have a book
> that is telling me what that does. I have O'reilly learning perl but it
> does not detail that type of checking.
>
> What is this saying below:
> if (!$in{'firstname'}||
>!$in{'lastname'}||
>!$in{'emai
: "Shawn McKinley" <[EMAIL PROTECTED]>
To: "Ken Fair" <[EMAIL PROTECTED]>; "Active Perl List"
<[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 3:13 PM
Subject: Re: Validate email code not working; Help Please
> Ken,
>
> > if ($in{'fir
At 02:13 PM 07/16/01 -0500, Shawn McKinley wrote:
>Err, oops, I did not do the bang thingy... I used a regex instead...
>Initial thought was this:
> if (!$in{'firstname'}||
> !$in{'lastname'}||
> !$in{'email'}||
> $in{'email'} !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) {
>
>Sorry about that... regex