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

If you want to return the values into individual variables....
($name, $address, $city, $phone) = &getInfo(); print "Name: $name\nAddress: $address\nCity: $city\nPhone: $phone"; sub getInfo(){ return ("xxx", "Main street", "Boston", "123 234 2345"); }