in reply to Redirecting STDOUT to a variable

You want qx (Quoted execution) or the backticks operator:
#!/usr/bin/perl use warnings; use strict; my $output = `nslookup www.perlmonks.org`; #or qx print "=====\n"; print $output; print "=====\n";
See perldoc perlop, and look for Quote and Quote-like Operators for more information
Cheers
Update: Also look for qx/STRING/ in the above manpage - it's more relevant
Update 2: Search for "capture STDOUT" in the search box, and you'll find How to capture data from STDOUT?. If it's a simple question, it's almost certainly been asked (and answered) before, so please remember to search first.

davis
Is this going out live?
No, Homer, very few cartoons are broadcast live - it's a terrible strain on the animator's wrist