in reply to Re: Re: Problems with open
in thread Problems with open

You could use Shell:
use Shell; my $sh = Shell->new; my @commands = qw (ls garbage rm); for (@commands) { if ($sh->can($_)) { print "command $_ is available\n"; } else { print "command $_ is NOT available\n"; } }
Update: sorry, sorry, this is wrong, I haven't really looked at the output of the script.

---- amphiplex

Replies are listed 'Best First'.
Re: Re: Re: Re: Problems with open
by skerr1 (Sexton) on Jul 24, 2002 at 16:13 UTC
    This is better. Still I won't be able to check to see if the command executed properly, but you solved the problem I asked for and I appreciate that.

    Thanks!

    -Shannon