Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: qx and $!

by ikegami (Patriarch)
on Oct 29, 2006 at 20:19 UTC ( [id://581158]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $output = qx(date);
    die("Unable to launch external process: $!\n")
       if not defined $output;
    die("The external process did not run successfully (error code $?)\n")
       if $?;
    
  2. or download this
    my $rv = system(date);
    die("Unable to launch external process: $!\n")
       if $rv == -1;
    die("The external process did not run successfully (error code $?)\n")
       if $?;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2024-04-16 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found