Help for this page

Select Code to Download


  1. or download this
        my $command = "host -v www.perlmonks.org 2>&1 |";
        
    ...
        
        # print $buff
        print "Output:\n$buff";
    
  2. or download this
        my $RC = system("host","-v","www.perlmonks.org");
        $RC = $RC/256;
        print "RC:\n$RC";