RE: help with ftp

2009-12-29 Thread Jeff Saxton
Recurse is probably a Boolean i.e. 0|1 Your put is failing because you're doing ftp->put not $ftp->put From: zilore mumba [mailto:zmu...@yahoo.com] Sent: Tuesday, December 29, 2009 9:15 AM To: activeperl@listserv.activestate.com; Jeff Saxton Subject: RE: help wit

RE: help with ftp

2009-12-29 Thread zilore mumba
Jeff, Thanks very much for the hint. With mkdir it actually created the directories once but had a problem with put. When I rerun it it fails again at mkdir. (incidentally I do not know what value to put in for RECURSE. when I type RECURSE it gives of a breword RECURSE). Thanks for sparing your

RE: help with ftp

2009-12-29 Thread Curtis Leach
Another bug, the "if (! -d $ddir)" command in your highlighted foreach loop checks your local hard drive to see if the directory exists, not the remote server you are connecting to, which is what I assume you meant. I don't see a check if directory or file exists command, so you'd have to cwd() t

RE: help with ftp

2009-12-29 Thread Jeff Saxton
from the pod: mkdir ( DIR [, RECURSE ]) Create a new directory with the name DIR. If RECURSE is true then mkdir will attempt to create all the directories in the given path. From: activeperl-boun...@listserv.activestate.com [activeperl-boun...@listserv.acti

help with ftp

2009-12-29 Thread zilore mumba
Hello Perl Community. Thanks so much for all the help provided lduring the current year. Happy and prosperous New Year 2010 to all. Below is my code where I have a problem with ftp. I am trying to transfer data from one PC to another. When I try to make a directory on the distant machine, I get