Hi Athanasius, the only solution i was looking for was to avoid loops, otherwise i am already doing it via looping through Keys and replacing matching string. I am not an expert but this is what i have been doing already :)
my $line=join "", <F>; foreach $k (keys %dic) { $line =~ s/$k/$dic{$k}/gism; } print $line;
In reply to Re^4: Multiline Regex replacement in Multiline file
by akamboj84
in thread Multiline Regex replacement in Multiline file
by akamboj84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |