Something like this: (assuming @lines as the array that has the input)
for my $line (@lines) { while(my ($find, $replace) = each %ids) { s/$find/$replace/g } }
In reply to Re^2: using hashes
by R56
in thread iterating hash keys?
by R56
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |