I have a list of module names, as Str
s, extracted from the META6.json
. Specifically, the depends
array. This contains the following entries:
"Config::Parser::toml:ver<1.0.1+>",
"Config:api<1>:ver<1.3.5+>",
"Dist::Helper:ver<0.21.0+>",
"Hash::Merge",
"Terminal::Getpass:ver<0.0.5+>",
How can I best match individual entries? Doing eq
string matches isn't specific enough, as Config
wouldn't match Config:api<1>:ver<1.3.5+>
as a string. Trying to match using .starts-with
also wouldn't work correctly, as Config:ver<1.3.5>
wouldn't match Config:api<1>:ver<1.3.5>
.