At 03:57 PM 5/21/2002, rAuL wrote:
>How can i verify with one call whether a file is in my path?

     @_ = grep(-e ($_ .= "/$file"),
               split(/;/, $ENV{PATH}));

--
Mike Mirman                             Tel: (508) 647-7555
The Mathworks, Inc.                     FAX: (508) 647-7013
3 Apple Hill Drive, Natick, MA 01760-2098
mailto:[EMAIL PROTECTED]            Web: http://www.mathworks.com

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to