Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Why does Perl let me delete read-only files? Why does <CODE>-i</CODE> clobber protected files? Isn't this a bug in Perl?

by faq_monk (Initiate)
on Oct 13, 1999 at 03:42 UTC ( #819=perlfaq nodetype: print w/replies, xml ) Need Help??

Current Perl documentation can be found at

Here is our local, out-dated (pre-5.6) version:

This is elaborately and painstakingly described in the ``Far More Than You Ever Wanted To Know'' in .

The executive summary: learn how your filesystem works. The permissions on a file say what can happen to the data in that file. The permissions on a directory say what can happen to the list of files in that directory. If you delete a file, you're removing its name from the directory (so the operation depends on the permissions of the directory, not of the file). If you try to write to the file, the permissions of the file govern whether you're allowed to.

Log In?

What's my password?
Create A New User
[LanX]: ;-p
shmem spent 3 hours chasing a bug related to variable scoping
[shmem]: is there an equivalent to my in python? or 'use strict' ?
[LanX]: I doubt
[LanX]: only nonlocal in Py3
[shmem]: so, python sucks
LanX NSFW!!!

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-03-20 17:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (256 votes). Check out past polls.