http://qs321.pair.com?node_id=1217403


in reply to Re^3: List EXE_FILES installed by CPAN
in thread List EXE_FILES installed by CPAN

That's so dope, but it's incomplete. You forgot to split out lines with multiple records. I tried to extend your idioms up front but ended up post processing:

perl -MList::Util=uniq -le "$,=$/; @_= uniq( qx(perldoc -uT perllocal) + =~ m(<EXE_FILES: (?:.*/)?(.*)>)g); for (@_) { @x = split/\s+/; push +@z, @x} print sort @z"
STOP REINVENTING WHEELS, START BUILDING SPACE ROCKETS!CPAN 🐪