in reply to Returned value from subroutine is 1 when returning ""
The empty string evaluates to false in a boolean context, so the first value stored in $o is the return value of the print.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Returned value from subroutine is 1 when returning ""
by fidesachates (Monk) on Jan 06, 2011 at 16:21 UTC | |
by Fletch (Bishop) on Jan 06, 2011 at 19:51 UTC |