Help for this page

Select Code to Download


  1. or download this
    [larry@august-dev perl]$ curl --max-time 3 http://someweb.org 2>&1
    curl: (6) name lookup timed out
    [larry@august-dev perl]$ echo $?
    6
    
  2. or download this
     #!/usr/bin/perl
     use strict;
    ...
     my $result = `curl --max-time 3 http://someweb.org 2>&1`;
     print "exit status: $?\n";
     print "result:\n", $result, "\n";
    
  3. or download this
    [larry@august-dev perl]$ ./foo.pl
    exit status: 1536
    result:
    curl: (6) name lookup timed out