Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: overwrite a file

by RazorbladeBidet (Friar)
on Apr 01, 2005 at 16:38 UTC ( [id://444297]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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:
perl -MFile::Copy -le 'File::Copy::copy("tmp.log", "tmp.pl");'
Do you maybe not have write permissions?
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://444297]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.