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

Capture external program return value

by llancet (Friar)
on May 02, 2010 at 01:50 UTC ( [id://837969]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $result = `blastall -i foo -o bar -p blastx -d baz`;
    
    if ($!) {
      die "something bad happened: $!";
    }
    
  2. or download this
    eval {
      $result = `......`;
    ...
    if ($@) {
      die "......";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-23 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found