develooper Front page | perl.beginners | Postings from June 2006

Re: Perl script to search and replace a string in a file

Thread Previous
From:
Luke Bakken
Date:
June 2, 2006 11:08
Subject:
Re: Perl script to search and replace a string in a file
Message ID:
6acc6ca40606021108q18a1f93ek8d7814f8ead570ff@mail.gmail.com
> >> > perl -pi -e 's/original text/new text/g' *
> >>
> >> Error: Can't do inplace edit without backup.
> >
> > You need either  perl -pi.bak -e ...  or an OS upgrade.  Windows,
> > unfortunately, can't manage this.
>
> This isn't a Windows problem, this is a Perl on Windows problem that is
> solely in the Perl interpreter or its libraries.

Really? If this problem, which comes up with amazing frequency on all
perl mailing lists, were a problem with the perl interpreter it would
be fixed by now. You clearly do not understand the difference between
Unix file operations and Windows file operations.

If it can be fixed please submit the code to the perl.perl5.porters
mailing list. Otherwise you're just making statements with no
substance.

Thread Previous


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