in reply to Opening not-existing command - Error Handling

In linux when I try to run a command that I'm not sure exists, I always use "which", but as you've noted that's OS dependent. I see that someone at CPAN wrote File::Which, you might have luck with that... as it appears to be OS independent. (I've never used it.)
  • Comment on Re: Opening not-existing command - Error Handling

Replies are listed 'Best First'.
Re^2: Opening not-existing command - Error Handling
by Dirk80 (Pilgrim) on Aug 17, 2011 at 12:42 UTC

    I tried File::Which. It is working fine and at the moment I use it to check if a command exists or not.