in reply to Re: Re: Re: Re: Re: Re: Re: Re: Problem using Net::FTP
in thread Problem using Net::FTP
2. Read my previous posts to you, particularly the bits about File::Copy.
3. Wonder why after the above you're trying to use mv through system when I've shown you a better way.
4. Realise that you're doing that mv inside a loop so of course the damn files aren't going to be there the next time around the loop!
5. Change calls to system to use move from File::Copy instead and change these lines to be outside of the second for loop, eg the place where you send the email. Remember to then check that your move succeeded (by using the unless statements like I did).
6. Rejoice because it all finally works the way it should.
Hope it helps.
jarich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Re: x 8) Problem using Net::FTP
by cc (Beadle) on Apr 22, 2004 at 17:26 UTC | |
by jarich (Curate) on May 10, 2004 at 05:06 UTC | |
by cc (Beadle) on Jun 15, 2004 at 19:17 UTC |