perl equivelent of which in bash



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.

.