in reply to overwrite a file
I'm assuming you're using File::Copy.
What are you trying? I can do the following (where both tmp.pl and tmp.log exist) with no problems:
What are you trying? I can do the following (where both tmp.pl and tmp.log exist) with no problems:
Do you maybe not have write permissions?perl -MFile::Copy -le 'File::Copy::copy("tmp.log", "tmp.pl");'
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."
|
---|
In Section
Seekers of Perl Wisdom