in reply to Re: Complex conditional statements
in thread Complex conditional statements
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Complex conditional statements
by mrpeabody (Friar) on Jun 16, 2005 at 17:17 UTC | |
|
Re^3: Complex conditional statements
by Tanktalus (Canon) on Jun 16, 2005 at 16:44 UTC |