|more useful options|
Re: Script to check for multiple files on FTP and print the one missingby zork42 (Monk)
|on Jul 01, 2013 at 03:19 UTC||Need Help??|
(1) It it not clear what you mean by a "missing file", especially as all the files will have different names. Are you expecting to see these sort of filenames
ie filenames where the '*' in the file masks are replaced by the same text in all 3 groups?
In this case would 'xyz_some_different_text.txt' be the "missing file"?
(2) I initially thought "if (@a && @b && @c)" was equivalent to "if ( scalar(@a) && scalar(@b) && scalar(@c) )".
However, the help file says
"Binary "&&" performs a short-circuit logical AND operation. That is, if the left operand is false, the right operand is not even evaluated. Scalar or list context propagates down to the right operand if it is evaluated."This means that I have no idea what it means!
Maybe a helpful monk can explain?
It is a very unusual construction, it might be worth replacing it with something clearer.
UPDATE: I did not see Anonymous Monk's post before writing my post, as he posted while I was writing this. I don't think it actually makes any difference in this case, but I thought I'd mention it!