samtregar has a point -- if you haven't posted line 407, there's not much we can do to help. On the other hand, if line 407 was actually this one (from the first snippet):
$error = system("$gzipLoc $dupeDir/$logFile");
Then the question might or might not have anything to do with the MORELOGS input, depending on how you assign values to $gzipLoc. If that string is not a problem, then the problem is that you are now getting lines of data from the file cited by $arcLogsUsToo -- is this file generated by some other Perl script (or by some other snippet in the current script)?

Given how you are handling the lines from MORELOGS, it's very plausible that you now have lines like:

Error message; no such file
Note the semi-colon. To work through this, here's the first thing to try:
# $error = system("$gzipLoc $dupeDir/$logFile"); # NOT THIS WAY $error = system($gzipLoc, "$dupeDir/$logFile"); # THIS WAY (update: +fixed spelling)
The "multi-argument" usage of system() is safer -- the sub-process named by the first variable is exec'ed, and its argument list is given to it as the list of subsequent args in the system call. When you pass system() a single scalar string, and if that string contains shell meta-characters (i.e. job control things like "|", "&", "<", ">" and of course semi-colon), it will launch a sub-shell, and pass the whole string as a command line. So if you have metacharacters in a variable that you believe is just a file name, and you put that into a single-string arg to system(), you're likely to be screwed.

In reply to Re: 5.8.3 error not thrown by 5.8.0 by graff
in thread 5.8.3 error not thrown by 5.8.0 by gennari

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.