[mrtg-developers] PERLish cfgmaker question

Charles Johnson johnson-c at MSSU.EDU
Tue Aug 5 02:01:08 MEST 2003


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 
eflashj at swbell.net
johnson-c at mail.mssc.edu

--
Unsubscribe mailto:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers



More information about the mrtg-developers mailing list