Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Net::FTP pwd bug?

by runrig (Abbot)
on Oct 12, 2005 at 23:08 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found