in reply to Re^3: Replacing substrings with links
in thread Replacing substrings with links
my $h_orig = { '/a/b/c/dt/data/SUSE/tool/0.9.0' => '/a/b/c/dt/tools/SUSE/tool/0.9 +.0', '/nfs/us/tools/SUSE' => '/usr/bin', '/a/b/c' => '/p', '/p/dt' => '/nfs/us'};
Your code gives the same result for the input.
Update: Ordering is important. I have no idea what the expected output of
is.my $h_orig = { '/a' => '/b/c', '/b/c' => '/a', };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Replacing substrings with links (updated)
by LanX (Saint) on Feb 06, 2022 at 17:23 UTC |