Hi.

(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
@a = ( 'abc_some_text.txt', 'abc_some_other_text.txt', 'abc_some_diffe +rent_text.txt' ) @b = ( 'efg_some_text.txt', 'efg_some_other_text.txt', 'efg_some_diffe +rent_text.txt' ) @c = ( 'xyz_some_text.txt', 'xyz_some_other_text.txt' )
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!

In reply to Re: Script to check for multiple files on FTP and print the one missing by zork42
in thread Script to check for multiple files on FTP and print the one missing by perlvroom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.