Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: net ftp recursive - rls and rdir

by Mr. Muskrat (Canon)
on Sep 07, 2012 at 13:52 UTC ( #992315=note: print w/replies, xml ) Need Help??


in reply to net ftp recursive - rls and rdir

In addition to the filehandle issue I thought I'd point out a few other things.

Are you using Net::FTP or Net::FTP::Recursive? You've used both but since you didn't show how you used the constructor, we don't know. Net::FTP doesn't support rls.

Also, in all Net::FTP and Net::FTP::Recursive calls after the constructor you should be using $ftp->message (or in your case $f->message) as a part of your die messages as documented in Net::FTP.