Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: List EXE_FILES installed by CPAN

by usemodperl (Beadle)
on Jun 25, 2018 at 21:53 UTC ( [id://1217403] : note . print w/replies, xml ) Need Help??


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 🐪