It appears that most of the answers in this thread are based on an invalid assumption. Looking at the source for the message() method (in the Net::Cmd source code), it doesn't return a local error and the number 13 doesn't appear to have anything to do with $! on the local host.

If it had been an error opening the local file, then the reaction would have been the following code from get() in Net::FTP source code:

carp "Cannot open Local file $local: $!\n";

So "File open error = 13" is the response coming back from the remote FTP server. 13 being the defined value for EACCES is common enough that it still might indicate "permission denied" but it would depend on whether the remote FTP server is actually reporting errno and what errno of 13 means on that system (not what your local system reports $! = 13 as being).

You might want to report $ftp->code(), a 3-digit status code that you can look up, for example, in http://help.globalscape.com/help/support/Error_Codes/FTP_Codes.htm.

- tye        


In reply to Re: File Open Error = 13? (remote) by tye
in thread File Open Error = 13? by molson

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.