in reply to Using Perl FTP to write a string variable as a file

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re: Using Perl FTP to write a string variable as a file

Replies are listed 'Best First'.
Re^2: Using Perl FTP to write a string variable as a file
by Anonymous Monk on Dec 27, 2004 at 20:46 UTC

    # What have you tried? Do you even have pseudo-code?

    My first attempt was to do this with ASP and eventualy PHP. But when I realized writing text files to the folders displaying the web files generated errors due to lack of permission I realized FTP should be a quick work around.

    I do not have any pseudo-code to help anyone help me out. I think the first response looks promising and if it works may be all I need.

    # What experience do you have with Net::FTP? Have you tried a simple script of writing a random string to a remote file?

    I have no experience with Net::FTP but based on what I read I think it's the way to go. I have not attempted to write a random string to a remote file. If I could find an example of this then I think I will have the information I need to complete my task.

    # Why are you writing a script that doesn't know what host it will be on? If you're on multiple hosts, doesn't that mean you are going to control them?

    Once I have created the script I would like to make it available to as many people as possible. Since most Unix and Windows hosts come pre-installed with Perl then it is very likely that a Perl script could be an ideal cross platform solution.