I have a small requirement in perl substitution.
Following code will give output as
my %hash = (
'GREETING1' => 'HAI',
'GREETING2' => 'HELLO',
my $value = '-GREETING1- James -POSITION-';
#Replace greetings value
but I need the output like following,
HAI James -POSITION-
because -POSITION- will be replaced by another
substitution. So if hash doesn't have key then it should not replace. How do i make this in above substitution ???