good chemistry is complicated,
and a little bit messy -LW
After i made the script of commenting out lines , it starts to make bugs :S <
by firewall00 (Acolyte)
|on Oct 07, 2007 at 16:51 UTC||Need Help??|
firewall00 has asked for the
wisdom of the Perl Monks concerning the following question:
finally i made that code which is really a code, to comment out the named.conf file
by choosing the domain name and then it will make matching and provide a counter, which is actually to put the comment from the matched line and till 5 five line starting form this matched line
so here is the code
it works fine for the first time but i noticed somthing which make me confused
every time i run this script on the file the file it shifted one space from the left like that
this is the status of the file before running the script .
and after running it
the script comment out the zone as i nedded but, you see the space added the left of the file and after run it again the spac is increased by one and so on . .
how can i prevent such space. that is must for my code to keep the file without any changes and without any spaces . and just comment the nedded zones .