in reply to How to collect the stdout of a subroutine call?

You can return the results as a string, but (and I'm guessing here) I think it would be more useful if the results are returned as a hash reference:
sub results { # Guessing that the results are in separate variables $name, # $address, $city, $phone: return { name => $name, address => $address, city => $city, phone => $phone, }; }
Now you can get to the separate entries of the results in your main program:
my $info = results(); print "Name: " . $info->{name} . "\n"; # And of course $info->{address}, $info->{city} and $info->{phone}
Take a look at perldsc and perlref for more information on how these things work.

Arjen