perlquestion
rjsaulakh
<p> i have a config file in my /usr/src/linux2.4 . the config file have some configuration entries in it along with the option as y, m or n </p>
<code>
# General setup
#
CONFIG_NET=y
CONFIG_HOTPLUG=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_NR_CPUS=8
CONFIG_MAX_USER_RT_PRIO=100
CONFIG_MAX_RT_PRIO=0
#
# Busses
#
# CONFIG_MCA is not set
CONFIG_PCI=y
CONFIG_PCI_NAMES=y
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
</code>
<p> i have to write a perl script to edit this file .and the changes i have to make are fixed . so can you please help me how can i edit this file through my script and i can set or unset the various parameters</p>