in reply to Re: Cannot get Perl to replace a specific string in my textfile
in thread Cannot get Perl to replace a specific string in my textfile

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