in reply to Challenge: Generate a glob patterns from a word list
I'd start maybe looking at Regexp::Trie for inspiration; at least conceptually its similar just you'll be targetting glob semantics rather than regexp.
Edit: Looking at the original question domain (mkpath -p on directory names) I wonder if you might couldn't cheat and work path segment by path segment (split into sections on qr{/} then kind of do a trie-ish thing on each segment). Don't know if that's applicable for the more general question.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Challenge: Generate a glob patterns from a word list
by LanX (Saint) on May 04, 2021 at 11:42 UTC | |
by Fletch (Bishop) on May 04, 2021 at 14:33 UTC | |
by tybalt89 (Monsignor) on May 04, 2021 at 14:20 UTC | |
by choroba (Cardinal) on May 04, 2021 at 14:34 UTC | |
by LanX (Saint) on May 04, 2021 at 17:34 UTC | |
by choroba (Cardinal) on May 04, 2021 at 18:50 UTC | |
by LanX (Saint) on May 05, 2021 at 11:36 UTC |