Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: overwrite a file

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


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
Node Status?
node history
Node Type: note [id://444297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2020-10-24 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?