I need to access an FTP server within a PERL program and have written the following which does open up a connection to the FTP service but doesn't sent the SITE EXEC command like I would hope it would but instead just drops connections because the program ends.