in reply to Update hash value
my $key = 'res.ldlibrarypath'; for my $hashref($HR_wnt,$HR_unx,$HR_component) { if (exists $hashref->{$key} && $hashref->{$key} =~ m{/}) { $hashref->{$key} =~ s{/opt/app/$target.*?:}{} } }
Your hash is updated after that substitution if the regex matched, so I don't quite understand what your question is about.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Update hash value
by Sun751 (Beadle) on Jun 25, 2009 at 11:52 UTC |