Don't ask to ask, just ask | |
PerlMonks |
Re: Creating Variables Just to Pass into Subroutine?by GotToBTru (Prior) |
on Jul 21, 2015 at 20:42 UTC ( [id://1135713]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|