in reply to Re: About Net:FTP:Autoreconnect
in thread About Net:FTP:Autoreconnect

Thanks for the reply

My program runs successfully for most of the times. If there is any error in the program then how it is running successfully.

This error will occur rarely but fatal.It occurs(mostly) while using ls command as follows

my @ftpfiles=$ftp->ls or die "cannot get file list; print "Got file list\n";
It is also not printing the statement in the die. Whats the problem?

Waiting for the bless

Arun Kumar C.N

Replies are listed 'Best First'.
Re^3: About Net:FTP:Autoreconnect
by apl (Monsignor) on Mar 07, 2009 at 15:05 UTC
    It is also not printing the statement in the die. Whats the problem?
    Then obviously this isn't where your program is dying. Have you used the debugger? Used print statements or Data::Dumper calls judiciously?

    If the problem occurs with any regularity (as you say it does), it's deterministic.