Making it work on a copy is just a matter ofs/([^=]+)/(my $lhs=$1) =~ tr:_:.:; $lhs/e for @envArray;
s/([^=]+)/(my $lhs=$1) =~ tr:_:.:; $lhs/e for @array=@envArray;
In reply to Re: substitution in a string
by Roy Johnson
in thread substitution in a string
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |