[Cascavel-pm] otimização em manipulação de texto
breno
breno em rio.pm.org
Terça Dezembro 4 10:52:50 PST 2007
segundo perldoc perldiag:
--------------------8<------------------
Can't do inplace edit without backup
(F) You're on a system such as MSDOS that gets confused if you try
reading from a deleted (but still opened) file. You have to say -i
.bak, or some such.
--------------------8<------------------
e testando aqui:
--------------------8<------------------
Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>perl -i -pe "s/plim/shazam/g" teste.txt
Can't do inplace edit without backup.
C:\>perl -i.bak -pe "s/plim/shazam/g" teste.txt
C:\>
--------------------8<------------------
(ok, dois arquivos (teste.txt e teste.txt.bak) e substituição feita com sucesso)
Teria sido um problema de sintaxe no teste de vcs? Ou algo diferente?
[]s
-b
On Dec 4, 2007 3:37 PM, Rodrigo Panchiniak Fernandes <fernandes em cpan.org> wrote:
> O mesmo comigo. Tentei acrescentar ".pak" depois de
> -i, como sugerido em
> http://www.thescripts.com/forum/thread49693.html, mas
> também não funcionou.
>
> R. Fernandes
>
> --- fernandolouis em terra.com.br wrote:
>
>
> > Fernando não conhecia essa solução.
> > Fiz o teste e me retornou o seguinte erro: Can´t do
> > inplace edit without backup. Porque?
> >
> > []s,
> > Fernando
> > ----- Original Message -----
> > From: Fernando Oliveira
> > To: Cascavel Perl Mongers
> > Sent: Tuesday, December 04, 2007 3:42 PM
> > Subject: Re: [Cascavel-pm]otimização em
> > manipulação de texto
> >
> >
> > perl -i -pe 's/$regex/$sejaLaOQueFor/g' arquivo
> >
> > > _______________________________________________
> > Cascavel-pm mailing list
> > Cascavel-pm em pm.org
> > http://mail.pm.org/mailman/listinfo/cascavel-pm
>
>
>
> ____________________________________________________________________________________
> Be a better sports nut! Let your teams follow you
> with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
>
> _______________________________________________
>
> Cascavel-pm mailing list
> Cascavel-pm em pm.org
> http://mail.pm.org/mailman/listinfo/cascavel-pm
>
Mais detalhes sobre a lista de discussão Cascavel-pm