Make sure you return the value in your sub routine. Something like:
my $variable = results(); sub results { # ... do something that will give $foo the stuff you want # to return ... return $foo; }
In reply to Re: How to collect the stdout of a subroutine call?
by b10m
in thread How to collect the stdout of a subroutine call?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |