Silicon Cactus has asked for the wisdom of the Perl Monks concerning the following question:
foreach (@list) {if (! /\d{4}\-\d{2}/-/d{2}/ or $_ ne '') {$Flag=1 +;}} if ($Flag ==1) {print "The date fields MUST be filled out correctl +y!";exit;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "or" or "||" problems
by tachyon (Chancellor) on Nov 06, 2002 at 22:32 UTC | |
by Silicon Cactus (Scribe) on Nov 07, 2002 at 13:09 UTC | |
by tachyon (Chancellor) on Nov 07, 2002 at 14:18 UTC | |
|
Re: "or" or "||" problems
by Zaxo (Archbishop) on Nov 06, 2002 at 22:47 UTC | |
|
Re: "or" or "||" problems
by FamousLongAgo (Friar) on Nov 06, 2002 at 22:36 UTC | |
|
Re: "or" or "||" problems
by Enlil (Parson) on Nov 06, 2002 at 22:19 UTC | |
|
Re: "or" or "||" problems
by Ananda (Pilgrim) on Nov 07, 2002 at 04:35 UTC | |
by Anonymous Monk on Nov 07, 2002 at 04:52 UTC |