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. The syntax of many programming languages includes support for creating self contained subroutines, and for calling and ...
2
votes
1answer
59 views
2
votes
1answer
55 views
Improving efficiency and flow by changing subroutine orders
A batch file executes WinSCP.exe's console mode to download files and log the actions. Upon exit, WinSCP returns:
ERRORLEVEL 0 if the files are successfully ...
1
vote
0answers
120 views
Split large import task into smaller subtasks
I have a large import task that runs as a cronjob and I want
to split that task in smaller subtasks. Each subtask should be handled by
an own class.
At the cronjob entry point I prepare the ...
3
votes
2answers
156 views
Verb tense parser
I have written this Perl code, and there is still more to add, however I was hoping that I could get some opinions on whether it could be written better.
Specifically, there is a central ...
3
votes
2answers
300 views
Is calling a function only twice a good use of recursion?
Is this, technically, a recursive function? It only gets called once by itself, but it cleaned up my code quite a bit, I think. Or, does it needlessly complicate the code?
...
10
votes
4answers
440 views
Subroutine to call other subroutines
I have a Perl application that allows the user to choose between two different formats for data output (and there will likely be more in the near future). In the heart of the algorithm, the code makes ...