ikegami has correctly decrypted the logic of that statement a few posts higher. However, it is just a test piece...
What i'm trying to accomplish is: i have a script that is supposed to transfer files from ftp to certain directories (on WinNT/XP platform). The script has been failing randomly when downloading the files, with the error message saying "Bad file descriptor", which can mean almost anything. The files are there every time the transfer occurs, whether success or failure.
I'm trying to introduce a --test option to the script, that would do a "dry run", without actually transferring the file, just printing status messages on every step. Since the majority of the code is the same for test and normal run, I want to use those if, and, or, unless keywords, and I want to keep the code compact. I have a C background, so my code did look like a C program... well, initially it did. But I'm realy impressed with the power of Perl to mangle several statements together like this, and trying to use that.
If there are better ways to do this, I'm open to suggestions...
--------------------------------
An idea is not responsible for the people who believe in it...
In reply to Re^2: Complex conditional statements
by bofh_of_oz
in thread Complex conditional statements
by bofh_of_oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |