|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^3: How to call a sub-routine refby blue_cowdawg (Prior) |
| on Oct 22, 2012 at 12:47 UTC ( #1000324=note: print w/ replies, xml ) | Need Help?? |
|
Did you actually test that code?
your second call fails. If you fix this by rewriting it thusly: there is still the open question of "which is better?" From a readability standpoint I'd vote for the latter rather than the former. Others may disagree but that is the essence of TIMTOWTDI. If you feel there may be a performance issue involved here have you tried profiling the code? Peter L. Berghold -- Unix Professional Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||