Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Net::FTP pwd bug?

by mikeock (Hermit)
on Oct 12, 2005 at 18:59 UTC ( [id://499715]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

When that variable is added  my $mypath = $ftp->pwd(): to my code, I get the same results as just trying to call  $ftp->pwd();

And by the same I mean that there is no repsonse at all. The Box that has the server on it allows me to login and type pwd so I know that it is supported on the server.

Replies are listed 'Best First'.
Re^4: Net::FTP pwd bug?
by runrig (Abbot) on Oct 12, 2005 at 19:08 UTC
    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";
      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://499715]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.