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.
In reply to Re: net ftp recursive - rls and rdir
by Mr. Muskrat
in thread net ftp recursive - rls and rdir
by poori
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |