Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have been trying to get the code below working for ages - but it just won't play!
$tmpfile = tmpFileName($clientattachment); @filespec = split(/\\/,$clientattachment); $filname = @filespec[$#filespec]; $att_file = $current_thread_id.$filename; $att_file =~ s/ /_/g; $att_file =~ s/\//_/g; system("cp $tmpfile $copypath/$att_file");
If I try die($tmpfile) after, it has no value. Is that correct?
If I try $tmpfile = tmpFileName($clientattachment) || die("Failed");, it always dies.
Anyway, under all circumstances which I have tried, when I go to look for the file in the location specifed (linux box), it is not there.
Cany anyone shed some light?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Copy - not working!
by Zaxo (Archbishop) on Jun 19, 2003 at 10:45 UTC | |
|
Re: File::Copy - not working!
by TomDLux (Vicar) on Jun 19, 2003 at 11:12 UTC | |
|
Re: File::Copy - not working!
by helgi (Hermit) on Jun 19, 2003 at 12:57 UTC | |
by bodmin (Sexton) on Jun 19, 2003 at 13:46 UTC | |
by helgi (Hermit) on Jun 19, 2003 at 14:29 UTC | |
by Anonymous Monk on Jun 20, 2003 at 10:37 UTC | |
|
Re: File::Copy - not working!
by vek (Prior) on Jun 19, 2003 at 12:59 UTC |