Paul Lalli schreef:
> Dr.Ruud:
>> [EMAIL PROTECTED]:
>>> 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}.
Thanks for the correction of my stupid typoes. In the line that came
after what you quote, and in the code that followed it, it is OK.
BTW, the {} are not needed.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/