Well my previous post got deleted so I will try again.
Can someone help me translate the following perl syntax. I think join combines a bunch of values with a string deliminator such as "key1 | key2" etc. But how does it work below?
myhashkey => join("|",
keys %MyHash,
map { my $c = $_;
$c =~ s/(\w)/$1./g;
( quotemeta $c, $_ ) }
sort { length $b <=> length $a }
values %MyHash)
Any help would be greatly appreciated.
Can someone help me translate the following perl syntax. I think join combines a bunch of values with a string deliminator such as "key1 | key2" etc. But how does it work below?
myhashkey => join("|",
keys %MyHash,
map { my $c = $_;
$c =~ s/(\w)/$1./g;
( quotemeta $c, $_ ) }
sort { length $b <=> length $a }
values %MyHash)
Any help would be greatly appreciated.