No such thing as a small change | |
PerlMonks |
(Re: x 8) Problem using Net::FTPby jarich (Curate) |
on Mar 31, 2004 at 01:30 UTC ( [id://341171]=note: print w/replies, xml ) | Need Help?? |
1. Read perldoc File::Copy or if that's too hard read the html version over at CPAN.
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
In Section
Seekers of Perl Wisdom
|
|