[Chicago-talk] return values

Dooley, Michael Dooley.Michael at con-way.com
Tue Dec 30 14:10:42 CST 2003

why cant I see this stuff before I send the email. ;/

thanks Jonathan.

-----Original Message-----
From: chicago-talk-bounces at mail.pm.org
[mailto:chicago-talk-bounces at mail.pm.org] On Behalf Of Jonathan Steinert
Sent: Tuesday, December 30, 2003 2:02 PM
To: Chicago.pm chatter
Subject: Re: [Chicago-talk] return values

Dooley, Michael wrote:

> if you have multiple return values do you have to use an array to collect
> them? or can you get each return value in is own variable off the jump?
> sub stuff {
> $a=1;
> $b=2;
> return ($a, $b);
> }
> @c=stuff
> so
> $c=1st return value
> $d=2nd return value

do you mean calling it as:

($c, $d) = stuff();



Chicago-talk mailing list
Chicago-talk at mail.pm.org

More information about the Chicago-talk mailing list