Hello all,
First of all, this is a strange request for a script, but should be very simple, but I
can't get the code to cooperate.
What I need is for a script (when run) to open a specified file and comment out a
certain line of code. This script will be run via a cron job late at night.
The line I need to match and replace is:
${tmp} = "Enable" if( ${zone} =~ /gvl/i ) ;
I need it to look like this:
#${tmp} = "Enable" if( ${zone} =~ /gvl/i ) ;
I've tried:
$string =~ s/(\$\{tmp\} \= \"Enable\" if\( \$\{zone\} \=~ \/gvl\/i \) \;)/#$1/;
with no luck.
Any help is appreciated,
Kevin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]