Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: Net::FTP pwd bug?

by runrig (Abbot)
on Oct 12, 2005 at 23:08 UTC ( #499719=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://499719]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2021-12-09 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?