The property is defined thus: $self->{clientorgunit} = [];.
$self->clientorgunit(@temparray); puts only the first element of the array into $self->clientorgunit.
$self->{clientorgunit} = @temparray; puts only the scalar value of @temparray into $self->clientorgunit.
What am I missing here?
Thanks,
fmogavero
In reply to Putting contents of an array into Object property by fmogavero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |