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"; }
In reply to Re: Net::FTP cd vs cwd
by rupesh
in thread Net::FTP cd vs cwd
by qadwjoh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |