in reply to Creating Variables Just to Pass into Subroutine?
Are any of them used later in the program? That would be the obvious case for when you would want to use a variable instead of a literal. Otherwise, I tend to agree with you. It does clutter things.
Other advice - if you will be changing these programs, you will want to explore creating tests for them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating Variables Just to Pass into Subroutine?
by Monk::Thomas (Friar) on Jul 22, 2015 at 08:58 UTC | |
|
Re^2: Creating Variables Just to Pass into Subroutine?
by mdskrzypczyk (Novice) on Jul 22, 2015 at 13:39 UTC |