Re: perl equivelent of which in bash

2012-01-04 Thread John W. Krahn
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 = g

Re: perl equivelent of which in bash

2012-01-04 Thread Jim Green
Thank you! I should have searched cpan. Jim. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: perl equivelent of which in bash

2012-01-04 Thread Shawn H Corey
On 12-01-04 04:37 PM, Jim Green wrote: Greetings! 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. Thanks! Jim. Perhaps FindBin is the module you want.

Re: perl equivelent of which in bash

2012-01-04 Thread Robert Wohlfarth
On Wed, Jan 4, 2012 at 3:37 PM, Jim Green wrote: > 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. > A quick search of CPAN for the word "which" turned u

Re: perl equivelent of which in bash

2012-01-04 Thread John SJ Anderson
On Wednesday, January 4, 2012 at 16:37 , Jim Green wrote: > Greetings! > 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. > Does