"Halkyard, Jim" wrote:
Hi Jim,
It is better if you don't top-post.
> Hi Malik,
>
> If you pass a reference to the array as the first argument as below you can
> keep the array separate from the other arguments you are passing.
>
> @abc = qw(1 2 3);
> $x = 4;
> $y = 5;
>
> testsub([EMAIL PROTECTED], $x, $y);
>
> sub testsub($$$)
> {
> ($abc, $x, $y) = @_;
> print "Array @$abc\n";
> print "x $x\n";
> print "y $y\n";
> }
Thank you for using the clear scalar syntax in your prototype.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>