On 25 May 2014 01:47, Simon Wistow <si...@thegestalt.org> wrote:

> But attempting to parse the file using regexes feels icky.
>


There's an established and recognised way to get package names out of
arbitrary files.

And its even in core since 5.13.9 :)


https://metacpan.org/pod/Module::Metadata

push @modules, Module::Metadata->new_from_file($path)->packages_inside()

^ Aught to be better than an icky regex.


-- 
Kent

Reply via email to