astroboy has asked for the wisdom of the Perl Monks concerning the following question:

Is there a Test harness/module for testing the invocation of OS commands from Perl? I'd like to things like whether a file is in $PATH and whether it is executable

Thanks

Replies are listed 'Best First'.
Re: Testing OS Commands
by syphilis (Archbishop) on Feb 28, 2014 at 08:27 UTC
    ... things like whether a file is in $PATH

    The portable way to obtain a list of the directories in the path is:
    @path = File::Spec->path();
    Cheers,
    Rob
Re: Testing OS Commands
by Anonymous Monk on Feb 28, 2014 at 04:16 UTC
      Thank you...