in reply to How to check CGI params in if/elsif
Where are the directories you want to check against? Are you checking for them locally, or are you looking to see if there's a match with one of the elements of your array @directory? You can do the first check with -e and the second using a foreach to loop through each of the elements and test for equality.
I also notice that your E-Mail test would fail with any domain that has more than two parts .. better would be
Suffice to say that it's impossible to write a regexp that parses E-Mail addresses./^\S+@\S+(\.\S+){1,}/
--t. alex
"Nyahhh (munch, munch) What's up, Doc?" --Bugs Bunny
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help
by snowcrash (Friar) on Jun 11, 2002 at 08:27 UTC | |
by talexb (Chancellor) on Jun 11, 2002 at 12:51 UTC |