Hi, I am encountering this issue with my code and I pasted a portion of it and the result below. My problem is the $size_remote value for one particular file is not existing.
for ($a = 0; $a <=$count-1; $a++) { @size_local = $telnet->cmd("ls -ltr $src_cold/$list_files[$a] + \|awk '{print \$5}'"); chomp @size_local; $size_remote = $ftp->size($list_files[$a]); print "$list_files[$a] $size_remote $size_local[0] \n"; if ($size_local[0] != $size_remote) { Log::it $log, "Difference in size of $list_files[$a] $size +_remote in $host and $size_local[0] in $local.\n"; Log::it $eventfile, $msgstrng . "Difference in size of $li +st_files[$a] in $host and in $local.\n";
Here is a portion of the log file.
Net::FTP=GLOB(0x3c2780)<<< 226 Binary Transfer complete. Difference in size of initACPRD01.ora in ks214 and 3891 in 135.68.143 +.133. ********************* ACPRD01temp01.dbf.Z 401847211 401847211 ACPRD01temp_users01.dbf.Z 346455489 346455489 ACPRD01temp_users02.dbf.Z 401791822 401791822 ACPRD01tools01.dbf.Z 29597 29597 ACPRD01users01.dbf.Z 343452208 343452208 initACPRD01.ora 3891 lkACPRD01 24 24
You will notice that there's only 1 file size for initACPRD01.ora. Do you have an idea why this is happening?

In reply to problem with the "size" method in FTP module by tish602

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.