Permalink
Browse files

Merge pull request #2 from chadadavis/IPC-Cmd

Prefer core mod IPC::Cmd over File::Which
  • Loading branch information...
2 parents 0b54079 + 592695e commit 2ecc1b14a482a113e55acd977c0457b9e4136728 @brunoV committed Oct 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Bio/Tools/Run/QCons/Types.pm
View
4 lib/Bio/Tools/Run/QCons/Types.pm
@@ -8,7 +8,7 @@ use warnings;
use Mouse::Util::TypeConstraints;
use namespace::autoclean;
-use File::Which;
+use IPC::Cmd qw(can_run);
subtype 'Executable'
=> as 'Str',
@@ -20,7 +20,7 @@ sub _exists_executable {
return 1 if -x $candidate;
- return scalar which($candidate);
+ return scalar can_run($candidate);
}
no Mouse::Util::TypeConstraints;

0 comments on commit 2ecc1b1

Please sign in to comment.