> > I want to determine if a particular exectuable file is
> > available/exists within the path. Is there a switch or function
> > available to with/instead of the -x test? I have an example to
> > illustrate the results of what I want to do with a simpler approach.

If you want it nicely packaged you may download File::Which from 
http://Jenda.Krynicky.cz/perl/Which.pm

        use File::Which;
        print "Path to notepad is : ",which('notepad'),"\n";


it should work OK under Win32 and Unix (not tested under *nix 
though). Under Windows it checks the system variable PATHEXT 
for what is the local list of "executable" extensions.

Jenda

== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to