[sf-perl] Return from a function
David Alban
extasia at extasia.org
Thu Feb 28 11:24:48 PST 2008
the perlsub man page is helpful in this area.
On Thu, Feb 28, 2008 at 11:15 AM, <nheller at silcon.com> wrote:
> I have an idea in my head that's obviously incorrect.
> Maybe its a mental block but I can't even think of where to look for an
> answer. If the answer is obvious could y'all just say it but I would
> appreciate getting a keyword or referrence topic for my use later.
>
> [question]
>
> I was always under the assumption that Perl (like C) returns a single
> value from a function. I seems like this is not true as it looks like the
> following function returns 3 values. How could this be?
>
> my ($a, $b, $c);
> my ($paramA, $paramB);
>
> ($a, $b, $c0 = &someFunc($paramA, $paramB);
>
> [/question]
--
Live in a world of your own, but always welcome visitors.
More information about the SanFrancisco-pm
mailing list