I am trying to perform a subsitution if an entry exists in my hash:
s/(\$\w+)/$variables{$1}/g if(exists $variables{$1};
How can I assure that a match, not found in my hash will not be replaced?
In reply to Substitutions if hash entry exists by PhosphoricX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |