httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Re: in-place edit in TestRun.pm
Date Thu, 11 Mar 2004 06:06:42 GMT
On Wed, 10 Mar 2004, Stas Bekman wrote:

> Randy Kobes wrote:
> > Hi,
> >    A recent change in Apache-Test/lib/Apache/TestRun.pm
> > involves an in-place edit, at around line 765:
[ .. ]
> > Unfortunately, Win32 can't do such in-place edits:
[ ... ]
> why not doing:
>
>     local $^I = ".bak"; # windows can't do inplace edit
>     local @ARGV = $config_file;
>      while( <> ) {
>          s/old/new/;
>          print;
>      }
>      unlink "$config_file.bak";
>
> much simpler.

Very true ... I'll make that change - thanks!

-- 
best regards,
randy

Mime
View raw message