2
votes
2answers
139 views

To make a subroutine or not? +General Code tips

I have written this Perl code, and there is still more to add, however I was hoping that I could some opinions on whether it could be written better. Specifically, there is a central if-elsif ...
3
votes
2answers
245 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? sub check_backlog { my ...
8
votes
4answers
400 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 ...