in reply to Net::FTP cd vs cwd
use strict; use Net::FTP; my ($ftp, $ftpmessage, $fullpath); { $ftp = Net::FTP->new(<ftphost>) or die "Error: $!"; $ftp->login(<ftpuser>, <ftppass>) or die "Login Failure: $!"; $ftp->binary(); $ftp->cwd("$directory") or die "Couldn't change directory. $!"; $ftpmessage=$ftp->message(); $fullpath=$ftp->pwd(); print "Fullpathname $fullpath\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::FTP cd vs cwd
by qadwjoh (Scribe) on Sep 20, 2004 at 13:12 UTC |