In article <[EMAIL PROTECTED]>, Sparkle Williams wrote:
> ...so I was wondering exactly what the value of ftp_home is sup-
> -posed to represent. Below is an excerpt from the script. Many
> thanks!
Nothing magical about that variable name; it could be called anything
or it could just as easily be a string of characters. It is nothing
more than an argument for the 'cwd' method, which is analogous to
the "cd" ("change directory") command you find in text-mode FTP
clients. (Yes, gurus, I know this is an oversimplification.)
>From `perldoc Net::FTP`:
cwd ( [ DIR ] )
Attempt to change directory to the directory given in
$dir. If $dir is "..", the FTP CDUP command is used
to attempt to move up one directory. If no directory
is given then an attempt is made to change the
directory to the root directory.
So, to answer your question directly, "$ftp_home" was used to
indicate the directory (on the FTP server) containing the file
"$filename" to be downloaded via the 'get' method.
Hope that helps,
John
--
John Fox <[EMAIL PROTECTED]>
System Administrator, InfoStructure, Ashland OR USA
---------------------------------------------------------
"What is loved endures. And Babylon 5 ... Babylon 5 endures."
--Delenn, "Rising Stars", Babylon 5
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]