develooper Front page | perl.beginners | Postings from April 2002

Re: Serious problem with perl -pi -e

Thread Previous | Thread Next
From:
Paul Johnson
Date:
April 27, 2002 03:31
Subject:
Re: Serious problem with perl -pi -e
Message ID:
20020427103119.GA23238@pjcj.net
On Sat, Apr 27, 2002 at 12:35:38PM +0530, sharan wrote:
> Hello,
> 
> I lost my files, while using perl -pi -e.
> I wanted to replace a world in a set of files, "perl -pi -e
> 's/somestring/somethingelse/g' *.pl"
> but, it gave error saying permission denied and all the files got deleted.
> 
> If it cant rewrite the files, at least it should not delete.

Hi Sharan,

Take a look at this document for a detailed explanation of what is
happeneing.

  http://www.perl.com/doc/FMTEYEWTK/file-dir-perms

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About