in reply to Re: How to serialize Net::FTP object?
in thread How to serialize Net::FTP object?

Thanks for your reply. The problem is since the first script creates the FTP object, and the other script (which uses the FTP object) would be invoked by an external process, there is no way to merge the 2 scripts. It would be 2 separate invocations, unless there is a way for the 2nd script to send a message to the first script.

Here is my application: I want my text editor to invoke a program to ftp a file to a remote host when I need it to, but I want the ftp connection to already be open so that the text editor only needs to send the file, instead of initializing the connection each time. Ideas?

  • Comment on Re^2: How to serialize Net::FTP object?

Replies are listed 'Best First'.
Re^3: How to serialize Net::FTP object?
by BUU (Prior) on Dec 07, 2004 at 07:04 UTC
    You can't pass the FTP object in any meaningful way. Your only option is to run a perl server locally that maintains the ftp connect and listens for some other type of connections. Then your text editor can talk to that server and that server can use the ftp connection. It will be faster than opening a ftp connection every time, mostly.