You are still leaving opened filehandles, the ones for which !$check_path is true. I would close the filehandles unconditionally just after the $remoteh->put line.
--
David Serrano
In reply to Re^3: Net::SFTP::Foreign Puzzle
by Hue-Bond
in thread Net::SFTP::Foreign Puzzle
by SheridanCat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |