in reply to How to collect the stdout of a subroutine call?
I would suggest trying your idea and seeing if it works.
sub results { return "Name:xxx Address: Main street City: Boston Phone: 123 234 2345" } $variable = &results(); print $variable;
|
---|
In Section
Seekers of Perl Wisdom