There's more than one way to do things | |
PerlMonks |
Re: system( 'mv ...' ) not working?by bm (Hermit) |
on Sep 23, 2003 at 16:05 UTC ( [id://293552]=note: print w/replies, xml ) | Need Help?? |
Perhaps the user that runs the CGI, ie probably nobody, does not have permission to overwrite an existing /tmp/trashed. Check to see if the file already exists from the command line, and if so remove it. Alternatively, try this: Lastly, perhaps a better question is why can't you just unlink $newname?? -- bm
In Section
Seekers of Perl Wisdom
|
|