Jim Green wrote:
Greetings!
Hello,
basically I need a perl equivalent in bash that does which and gives me the binary path. I need this because I run my script in different systems I want the binary automatically adjusted.
use Env q/@PATH/; my $file = shift or exit 1; my @which_files = grep -x, map "$_/$file", @PATH; John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. -- Albert Einstein -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/