Further to chromatic's reply: In scalar context, an array evaluates to the number of elements of the array. This may be where you are getting your 3 from.
In reply to Re: Problem printing return value from a subroutine
by AnomalousMonk
in thread Problem printing return value from a subroutine
by zing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |