On Nov 1, 4:53 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote:
> [EMAIL PROTECTED] schreef:
>
> > sub graph
> > {
> > my @Xvalues = @{ $_[0] }; # remember to use "my"!
> > my @Yvalues = @{ $_[1] }; # remember to use "my"!
>
> A graph subroutine is not likely to change the input data, so there is
> no reason to copy the input data.
>
> my ($xValues, $yValues) = @_;
>
> and then use @xValues and @yValues where you need the arrays,
No. @xValues and $xValues have nothing to do with each other. You
need @{$xValues} and @{$yValues}.
Paul Lalli
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/