in reply to
Return Value in Subroutine
I don't see how your current code is working. Change this:
b::test($value);
[download]
to this:
$value = b::test();
[download]
With or without the return statement, the the last variable to be set (which is $value) will be returned.
Comment on
Re: Return Value in Subroutine
Select
or
Download
Code
In Section
Seekers of Perl Wisdom