http://qs321.pair.com?node_id=814036


in reply to Assigning output of unix command to a variable

What do you mean by "can't get past the '|' in the nslookup"? Consider this example.
#!/usr/bin/perl use strict; my $node = qx( nslookup www.perlmonks.org | awk -F Name: '{ print \$2 }' ); print $node;