[Chicago-talk] return values

Don Drake don at drakeconsult.com
Tue Dec 30 14:06:47 CST 2003


Try:

($c, $d)=stuff

-Don

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


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


Michael Dooley
Integrated Services Manager
Dooley.Michael at con-way.com
7735808777 at mobile.att.net
O: (630).449.1000
F: (630).449.1010
C: (773).580.8777 
_______________________________________________
Chicago-talk mailing list
Chicago-talk at mail.pm.org
http://mail.pm.org/mailman/listinfo/chicago-talk



More information about the Chicago-talk mailing list