1028804576 nasa@dodo.com.au name password 1028804590 nasa@dodo.com.au name2 pass2 1028804598 who@where.com again anouther
The other array I have is from a form with two entries.
I need to check the form entries against the data base file to see if they
exist or not. as password protection.
Of course the two form entries can end up $hit and $strike
the data base ends up @raw_data
I tried this .
my $flag = 0; for (@raw_data) { if (/$hit[0]/ || /$strike[1]/) { print "Found it."; $flag = 1; last; } } if (! $flag) { # didn't find it in the array print "didnt find it"; }
No matter what I type in the form or whats in the data base it always comes
back
Found it.
May god bless you guys...Nasa.
edited: Sun Aug 18 15:35:38 2002 by jeffa - added code tags, removed unnecessary br tags
In reply to Re: Re: Simple for some.
by nasa
in thread Compare two lists of words
by nasa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |