If I understand you correctly, you just want the contents of toFind and the contents of toReplace in the same log file, right? Would this work?
$data =~ s/$_->{toFind}/Original line: $_->{toFind}\n Replace with: $_->{toReplace}\n/g foreach (@myHashArray);But I confess I really don't know what you're doing or why you're doing it. Perhaps most importantly, you seem to make a distinction between "about 1200 files", and "a log file", but the code you have shown has no evidence of that (or, indeed, output of any kind). The $data =~ ... bit looks like it might be the original text replacement, but then where is the log file? Or is there another explanation entirely?
In reply to Re: array of hashes help
by rjt
in thread array of hashes help
by rv799cv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |