in reply to Net::FTP::Recursive - how to use rls

The filehandle is what the open command creates, FH in your case. I suggest two things to try: (a) remove the <> around FH, and (b) include the parameter name.

$ftp->rls(FH) or die $ftp->message; $ftp->rls(Filehandle=>FH) or die $ftp->message;
1 Peter 4:10

Replies are listed 'Best First'.
Re^2: Net::FTP::Recursive - how to use rls
by Discipulus (Canon) on Oct 21, 2014 at 07:27 UTC
    welcome zalezny, to add more words to what GotToBTru already said, consider that, for example: while (<FH>)
    is a shortcut to:
    while (defined ($_ = readline (*FH)))
    See more details on docs on IO operators.

    HtH
    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.