P
perry zhou
I used some legacy perl code to change a configuration file, it is
working and it replaces the line starts with XT_SCREEN_COUNT=1 with
the a new SCREEN_COUNT variable. But I don't quite understand what's
the meaning of the ' . in front of $numscreens and after $numscreens.
Could anyone give me a hint?
Thanks in advance!
$rc = system('sed -e
"s/^XT_SCREEN_COUNT=1/XT_SCREEN_COUNT='.$numscreens. '/g" '.
$resultdir.'tetexec.cfg>' . $resultdir. 'tetexec.cfg.tmp');
$numscreens is a variable which equals to a number, for example 2.
=======================================================================
#Part of the configuration file:
# available on the display, as returned by XScreenCount.
# the code above will change the 1 to 2.
XT_SCREEN_COUNT=1
working and it replaces the line starts with XT_SCREEN_COUNT=1 with
the a new SCREEN_COUNT variable. But I don't quite understand what's
the meaning of the ' . in front of $numscreens and after $numscreens.
Could anyone give me a hint?
Thanks in advance!
$rc = system('sed -e
"s/^XT_SCREEN_COUNT=1/XT_SCREEN_COUNT='.$numscreens. '/g" '.
$resultdir.'tetexec.cfg>' . $resultdir. 'tetexec.cfg.tmp');
$numscreens is a variable which equals to a number, for example 2.
=======================================================================
#Part of the configuration file:
# available on the display, as returned by XScreenCount.
# the code above will change the 1 to 2.
XT_SCREEN_COUNT=1