Hi 1nickt,
In the code you've shown, you don't need s/.../.../
$key = $replacements{$key};
I'm not sure I'm understanding your post...? This doesn't work:
foreach my $key ( sort keys %replacements ) { $key = $replacements{$key}; }
Regards,
-- Hauke D
In reply to Re^2: Cannot get Perl to replace a specific string in my textfile
by haukex
in thread Cannot get Perl to replace a specific string in my textfile
by skasch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |