This is probably more of a PERL question (again).

I'm generating some config files for NW 5 and 6 servers from a PERL
script. In the 5's, I get a MaxBytes line with a value of -1, in the 6's
I get a 0. I have the whole thing in $config for editing before writing
to the config file. I can change the -1 to 500 with:

$config=~s/-1/500/;

but if I run it again and change the -1 to 0 nothing happens.

Anyone have any ideas why I can't change the 0 to 500? What I'd really
like to do is change either -1 or 0 in the MaxBytes line to 500 with one
statement.

Thanks for any help.

Ed Johnson 
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers

Reply via email to