in reply to Martin Brown book page 33
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.
|
|---|