more useful options | |
PerlMonks |
Re^5: I'm trying to consolidate my functions into subroutinesby hippo (Bishop) |
on May 17, 2017 at 08:09 UTC ( [id://1190446]=note: print w/replies, xml ) | Need Help?? |
Is there really any formal distinction here in any language? Certainly in Fortran at least there is. The declarative statements FUNCTION and SUBROUTINE define two different types of subprogram. The former returns a value and is invoked like X = SIN(Y)whereas the latter does not and is invoked like CALL RANDOM_NUMBER(A)They serve distinct purposes. HTH.
In Section
Seekers of Perl Wisdom
|
|