|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Repeating Code - there has GOT to be a better way!by CountZero (Chancellor) |
| on Mar 31, 2010 at 19:02 UTC ( #832122=note: print w/ replies, xml ) | Need Help?? |
|
I see two possible solutions:
Update: fixed a typo in the subroutine (%Cmd instead of %cmd) CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||