in reply to Testing OS Commands

... 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