Subject: | setting empty arrays |
hi,
maybe this is a feature I don't understand, but this was a source of some hard to find bugs :(
if i define an array results like this:
array => [qw / results /],
$self->results( @empty_array );
seems not work, you have to check before:
if (@array == 0) {
$self->results_reset;
}
else {
$self->results(@array);
}
or you have the old values still in results...or do I something stupid here?
best regards,
markus
cpan, 2.05
Mac OSX 10.3 7.9.0 Darwin Kernel Version 7.9.0
This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level