Anonymous Monk,
If you are using the
Net::FTP module you want to use the
cwd method. The following example is from the
documentationuse Net::FTP;
$ftp = Net::FTP->new("some.host.name", Debug => 0)
or die "Cannot connect to some.host.name: $@";
$ftp->login("anonymous",'-anonymous@')
or die "Cannot login ", $ftp->message;
$ftp->cwd("/pub")
or die "Cannot change working directory ", $ftp->message;
$ftp->get("that.file")
or die "get failed ", $ftp->message;
$ftp->quit;
Should you need information on how to install modules, check out
Installing Modules from the
Tutorials section of this site.
Update: Please read the
PerlMonks FAQ and
How do I post a question effectively? if you have not done so already. The title and the content of your post could be a lot better.
hope this helps.
Martin