$/=""; my $randstr = rvg(); while(<FILE>) { s/(?<!\\)(\$\w+(?![\[{\w]))/$randstr/g; print; } [download]
In reply to Re: loop/substitution problem by dvergin in thread loop/substitution problem by cghost23