FirstSecond2311
That's because the function print returns 1 on success, just like many other Perl functions. Lacking an explicit return, statement, the first and second subs return the result of their last statement, which is 1 in both cases.
In reply to Re: Martin Brown book page 33
by friedo
in thread Martin Brown book page 33
by mnooning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |