Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: List EXE_FILES installed by CPAN

by jdporter (Chancellor)
on Jun 25, 2018 at 20:57 UTC ( #1217397=note: print w/replies, xml ) Need Help??


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

Feel free to golf my code.

Ok.

perl -MList::Util=uniq -le "$,=$/; print sort( uniq( qx(perldoc -uT pe +rllocal) =~ m(<EXE_FILES: (?:.*/)?(.*)>)g) );"

Note, I'm not actually a golfer. This is just my idea of concise code.

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

Replies are listed 'Best First'.
Re^4: List EXE_FILES installed by CPAN
by usemodperl (Beadle) on Jun 25, 2018 at 21:53 UTC
    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 🐪

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217397]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2022-01-26 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (69 votes). Check out past polls.

    Notices?