PERLish cfgmaker question
"Charles Johnson" <[email protected]> Mon, 04 Aug 2003 19:01:08 -0500
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Message-ID | <[email protected]> |
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]?subject=unsubscribe Help mailto:[email protected]?subject=help Archive http://www.ee.ethz.ch/~slist/mrtg-developers