At 2004-02-23 13:13 -0800, Tony wrote:
> I have a function that expects a comma seperated list of values.
>
> Is there some way to pass it an array, where each element is treated
> as a distinct value?
>
> For example, I have an array @VALS with values: "one", "two, "three".
>
> Can I call "row" in a way such that it appears to have been called
> like so:
>
> $rtf->row($arowdef,"one","two","three");
>
> ... without knowing how many elements are in @VALS
>
> ???
Maybe I don't understand the question, but what's wrong with just
calling the function with @VALS:
use Data:

umper;
sub row { print Dumper \@_ };
@VALS = qw/one two three/;
row('zero', @VALS);
prints
$VAR1 = [
'zero',
'one',
'two',
'three'
];