bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
ORif ( $today > $start && $today < $stop ) { if ( $today!= $notthisday[0] ) { if ( $today != $notthisday[1] ) { if ( $today != $notthisday[2] ) { if ( $day == $dayofmon[0] || $day == $dayofmon[1] ) { print "$today is the day."; } } } } }
Thanks all!if ( $today > $start && $today < $stop && $today != $notthisday[0] && $today != $notthisday[1] && $today != $notthisday[2] && $day == $dayofmon[0] || $day == $dayofmon[1] ) { print "$today is the day."; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Nested testing of many conditions--a better way?
by kesterkester (Hermit) on Mar 23, 2004 at 14:54 UTC | |
|
Re: Nested testing of many conditions--a better way?
by BrowserUk (Patriarch) on Mar 23, 2004 at 14:42 UTC | |
by halley (Prior) on Mar 23, 2004 at 14:52 UTC | |
by ambrus (Abbot) on Mar 23, 2004 at 15:19 UTC | |
|
Re: Nested testing of many conditions--a better way?
by flyingmoose (Priest) on Mar 23, 2004 at 14:58 UTC | |
by bradcathey (Prior) on Mar 23, 2004 at 16:36 UTC | |
|
Re: Nested testing of many conditions--a better way?
by bbfu (Curate) on Mar 23, 2004 at 18:53 UTC | |
|
Re: Nested testing of many conditions--a better way?
by dragonchild (Archbishop) on Mar 23, 2004 at 15:33 UTC |