There is an easier solution for your problem, though. Put the code that uses the FTP object in a subroutine (in a module, or in the same file as the code that creates the object) and call that sub.
If that's impossible (because of the structure of the other script), you can put the object in a global and do the script.
In reply to Re: How to serialize Net::FTP object?
by Joost
in thread How to serialize Net::FTP object?
by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |