in reply to Array troubles.. (Making a three-way method..)
I mean your lines
Write them as just:my $out = @@{$self->{'labels'}}?$#{$self->{'labels'}}:0; return DVAL $out;
Your more calculations are:return scalar @{$self->{'labels'}};
Anyway, you seem to be lost and you need to rethink your idea and implementation, may be re-ask your question from other point.
Personally, I advice you:
1. Do not "use Carp::Datum"
right now, because you should start with more obvious
debugging techniques, such as
using "use Data::Dumper" and just
printing your debug values to STDERR, or may be "ptkdb" graphical debugger
will greatly help.
2. do not use such many temporary variables, when you
can easily use function return value directly (as with "$inRef" variable)
Best wishes,
I.R.Baboon.
|
|---|