in reply to Re^3: Detecting if a program or file exists
in thread Detecting if a program or file exists

Thanks a bunch.
It worked as expected, however, the -x did not work and I finally use -e. How is this going to affect what I am trying to do? Thanks, FM
  • Comment on Re^4: Detecting if a program or file exists

Replies are listed 'Best First'.
Re^5: Detecting if a program or file exists
by Limbic~Region (Chancellor) on Oct 18, 2005 at 18:24 UTC
    FM,
    Take a look at perldoc -f -X. The difference between -e (exists) and -x (executable by effective UID/GID) may be a big one. Before I go any further - what do you mean -x didn't work? What happens when you try to run it? What's the output? What's the error message? Saying "it doesn't work" isn't very helpful.

    Cheers - L~R