|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Better way to write these checks?by Ransom (Beadle) |
| on Jun 29, 2012 at 12:28 UTC ( #979114=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Ransom has asked for the
wisdom of the Perl Monks concerning the following question:
Hey Monks, I've got some code smell and I can't find the right cleaner. I'm looking to combine the following two functions. I ended up writing them real quick to get another module finished, but I don't like the repitition. I've got a feeling that I'm not really being pragmatic or not using the right tools. Without further ado:
Did a bit of searching and didn't find any elegant solutions, but this is a pretty simple problem so maybe it doesn't demand such attention Ransom
Back to
Seekers of Perl Wisdom
|
|