in reply to Re^2: Functions (Return V Print)
in thread Functions (Return V Print)
But there is no error.
Strict can only warn about some bugs, not all of them. Otherwise you could trivially write perl scripts without any bugs.
If you don't have really compelling reasons, functions should return values only through 'return'. Note that you can return more than one value in perl, different from languages like C. In C this is often the reason why other means are used to return values.
|
|---|