If I understand your question correctly, this will work: #!/usr/bin/perl -w
use strict; my ($a, $b, $c, $one, $two, $three); $a=1; $b=2; $c=3; ($one, $two, $three)=Change($a, $b, $c); print "$one $two $three\n"; sub Change { my ($x, $y, $z)=@_; $x++; $y=0; $z=10; return ($x, $y, $z); } Roy Peters wrote: > Is there any way to return 2 or 3 scalar variables from a subroutine (like > passing a variable by reference in C)? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]