Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Problems with open

by amphiplex (Monk)
on Jul 24, 2002 at 16:05 UTC ( [id://184907]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184907]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-26 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found