#!/usr/bin/perl use warnings; use strict; my $output = `nslookup www.perlmonks.org`; #or qx print "=====\n"; print $output; print "=====\n";