in reply to Re^3: Net::FTP pwd bug?
in thread Net::FTP

Have you tried trapping for errors similar to the code in grantm's post above?:
my $path = $ftp->pwd() or die "pwd failed: " . $ftp->code() . ": " . $ftp->message(); print "$path\n";

Replies are listed 'Best First'.
Re^5: Net::FTP pwd bug?
by mikeock (Hermit) on Oct 12, 2005 at 23:17 UTC
    Hmmm.... Copied
    my $path = $ftp->pwd() or die "pwd failed: " . $ftp->code() . ": " . $ftp->message(); print "$path\n";
    Directly and it seems to work... (I get the path!)

    What was I doing wrong?

    Edit Da der I forgot to print the path! I got it now