nasa has asked for the wisdom of the Perl Monks concerning the following question:
if (-e "data/$file.data") || (-e "data/$otherfile.data") { print " <BR>Hooray at least one of the the files exists"; } else { print "<BR>Hohum neither of the files exist"; }
if (-e "data/$file.data") or (-e "data/$otherfile.data") { print " <BR>Hooray one of the files exist"; } else { print "<BR>Hohum neither of the files exist"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The or thing.
by bobf (Monsignor) on Feb 17, 2006 at 05:28 UTC | |
|
Re: The or thing.
by planetscape (Chancellor) on Feb 17, 2006 at 07:06 UTC | |
|
Re: The or thing.
by spiritway (Vicar) on Feb 17, 2006 at 05:28 UTC | |
|
Re: The or thing.
by strat (Canon) on Feb 17, 2006 at 09:01 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |