![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^3: Pathfinder - find duplicate (shadowed) programs in your PATHby toolic (Bishop) |
on Jul 22, 2009 at 01:37 UTC ( #782142=note: print w/replies, xml ) | Need Help?? |
Does grep { ! -d "$dir/$_ && -x _ } not work?Yes, I believe your Other Way To Do It is functionally equivalent to my code (assuming you close the quotes, of course). Your version has fewer keystrokes, and it may even run faster since it has one fewer grep, if one were so inclined to benchmark it. It produced the same results as my code.
In Section
Code Catacombs
|
|