in reply to ftp with perl

You are doing a chdir in a separate process which doesn't affect the perl process...perl has a chdir function; you should use it and check for success/failure:
chdir $home or die "Can't chdir to $home: $^E";

Replies are listed 'Best First'.
Re^2: ftp with perl
by perl_99_monk (Novice) on Nov 23, 2005 at 18:31 UTC
    Thanks so much I was able to fix it..... It is the chdir that is not going to the right directories. After modifying the paths it is working.
      Please consider restoring the code in your original node. None of the answers here make sense when there's nothing to refer to. The questions and answers are for the benefit of everyone. And remember to put <code>...</code> tags around the code. Thanks.