Hello,
I've been writing more and more utilities in Perl and using them
both in Windows and GNU/Linux. Since I'm so used to UNIX shells
and terminals, cmd.exe obviously leaves much to be desired, but I
don't care for Cygwin or MSYS environments. They each have their
own strengths and weaknesses an
Greg Carrara wrote:
>
> Thanks for the response! However, when I try this
> perl -pi -e "s/wordToFind/replaceWithThisWord/gi" *.ext
> with ActivePerl 5.6.1, on Windows 2000, I receive the error:
>
> CAN'T DO IN PLACE EDIT WITHOUT BACKUP
>
> Could this have something to do with Perl not reading
> Thanks for the response! However, when I try this
> perl -pi -e "s/wordToFind/replaceWithThisWord/gi" *.ext
> with ActivePerl 5.6.1, on Windows 2000, I receive the error:
>
> CAN'T DO IN PLACE EDIT WITHOUT BACKUP
>
> Could this have something to do with Perl not reading from
> and writing to
>"Jenda Krynicky" <[EMAIL PROTECTED]> wrote:
>>From: GREG CARRARA <[EMAIL PROTECTED]>
>> Hello,
>> I'm trying to search for a word and replace it multiple files at a
>> windows command prompt with the following:
>>
>> perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension
>>
>> This e
Greg Carrara wrote:
>
> Hello,
Hello,
> I'm trying to search for a word and replace it multiple files at a windows
> command prompt with the following:
>
> perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension
>
> This errors out. I've tried to replace the delimiters / with - to no
From: GREG CARRARA <[EMAIL PROTECTED]>
> Hello,
> I'm trying to search for a word and replace it multiple files at a
> windows command prompt with the following:
>
> perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension
>
> This errors out. I've tried to replace the delimiters / with
Hello,
I'm trying to search for a word and replace it multiple files at a windows
command prompt with the following:
perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension
This errors out. I've tried to replace the delimiters / with - to no effect.
Does someone know how to alter this
> Can someone tell me how do I execute a command line in windows using perl?
perldoc -f system
perldoc perlop (look for "qx" under Quotes and Quote-like operators)
E.g.
my $output = `do command`;
or
system"the command";
These may raise errors, which you ***SHOULD*** CHECK for. Don't as
hi,
can someone tell me how do I execute a command line in windows using perl?
thanks,
Thiago.