Think about Loose Coupling | |
PerlMonks |
Re: File::Copy - not working!by helgi (Hermit) |
on Jun 19, 2003 at 12:57 UTC ( [id://267166]=note: print w/replies, xml ) | Need Help?? |
1 - As the others have said, you are not using File::Copy at all, so your subject heading is wrong. 2 - No warnings or strictures. 3 - As the others have said, you should use File::Basename to get the file basename, not this kludgery.
4 - System commands return errors, but you're not even looking at it. Errors from daughter processes are in the variable $?. Use it. 5 - How can we know if $tmpfile has a value? You don't show us the tmpFileName subroutine code nor what is contained in the $clientattachment variable.
6- If I try $tmpfile = tmpFileName($clientattachment) || die("Failed");, it always dies. .
In Section
Seekers of Perl Wisdom
|
|