in reply to Problem printing return value from a subroutine
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem printing return value from a subroutine
by zing (Beadle) on Oct 04, 2012 at 09:29 UTC | |
by AnomalousMonk (Archbishop) on Oct 04, 2012 at 11:15 UTC | |
by zing (Beadle) on Oct 04, 2012 at 12:03 UTC | |
by zing (Beadle) on Oct 04, 2012 at 15:40 UTC | |
by zing (Beadle) on Oct 07, 2012 at 20:16 UTC |