Top "Subroutine" questions

A subroutine (e.g. procedure or subprogram) is a portion of code within a larger program, which performs a specific task and can be relatively independent of the remaining code.

How can I take a reference to a Perl subroutine?

I'm having some trouble figuring out how to make a reference to a subroutine in an external module file. Right …

perl reference external subroutine
What is the difference between a subroutine and a function?

Possible Duplicate: What is the difference between a ‘function’ and a ‘procedure’? I searched online for an answer to this …

function terminology theory subroutine
Calling perl subroutines from the command line

Ok so i was wondering how i would go about calling a perl subroutine from the command line. So if …

perl subroutine
What's the best way to discover all subroutines a Perl module has?

What's the best way to programatically discover all of the subroutines a perl module has? This could be a module, …

perl reflection perl-module subroutine
Perl - passing arguments to a subroutine as hash key-value pairs problem

I have to pass two references as arguments to a subroutine (buildRanges) as hash key-value pairs as show below Example: @…

perl hash subroutine
How can I inline Perl subroutines?

I am reading Code Complete 2, and one of the points mentioned is about creating subroutines even for operations that seem …

perl inline subroutine
Does Fortran preserve the value of internal variables through function and subroutine calls?

After much painful debugging, I believe I've found a unique property of Fortran that I'd like to verify here at …

function fortran scope subroutine