sashac88 has asked for the wisdom of the Perl Monks concerning the following question:
my $backup=$commandfile.".bak"; foreach $com (keys %hashnew) { $ARGV[0]="$backup"; $^I=".bak"; while (<>) { if ($hashnew{$com} == "all") { unless (/$hashnew{$com}/../\*\ Exit\ context\ \*/) { s/$com//g; } } if (/$hashnew{$com}/../\*\ Exit\ context\ \*/) { s/$com//g; } print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Flip flop operator
by Zaxo (Archbishop) on Aug 19, 2004 at 07:45 UTC | |
by ysth (Canon) on Aug 19, 2004 at 13:22 UTC | |
by sashac88 (Beadle) on Aug 19, 2004 at 08:19 UTC | |
by gellyfish (Monsignor) on Aug 19, 2004 at 11:23 UTC |