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.

Global Variable, subroutine variable Question in Perl

How can I transfer the subroutine variable value into another subroutine variable, Can I use global variable. sub foo(){ my $…

perl global-variables subroutine
Perl - Subroutine redefined

I have asked this question before or searched and seen others ask - why am I getting the warning "Subroutine …

perl subroutine
batch script subroutine: Passing arguments

My understanding is that in order to get the date from a file passed into a subroutine as an argument, …

batch-file arguments argument-passing subroutine
How can I use hashes as arguments to subroutines in Perl?

I was asked to modify some existing code to add some additional functionality. I have searched on Google and cannot …

perl hash parameters subroutine
Passing two or more arrays to a Perl subroutine

I am having trouble passing and reading arguments inside subroutine which is expected to have two arrays. sub two_array_…

arrays perl parameter-passing subroutine
Line truncated, Syntax error in argument list

When I compile the program below, I have an error and a warning in the call Coor_Trans command line …

fortran call subroutine fortran95
VBA Pass Array By Reference and Modify Contents

VBA question. I'm using it to make Solidworks macros, but that's not important. Can someone explain the syntax to pass …

arrays vba function pass-by-reference subroutine
How do you access function parameters in Perl?

In C++ I would do something like this: void some_func(const char *str, ...); some_func("hi %s u r %…

perl subroutine
What is the difference between ESP and EIP registers

What is the difference between ESP and EIP registers using the following examples? Explain what the code is doing. main …

assembly x86 procedure subroutine irvine32
How can I export all subs in a Perl package?

I would like to expose all subs into my namespace without having to list them one at a time: @EXPORT = …

perl function export subroutine