Hi,
How can I capture the results of a subroutine in perl to a scalar variable?
Like:
If my subroutine results are:
Name:xxx
Address: Main street
City: Boston
Phone: 123 234 2345
Can I do this:
If my sub is called &results.
I call it on my program like
&results;
But can I get the results of it into a scalar?
$variable = &results();
Is it possible?
Thanks!