Think about Loose Coupling | |
PerlMonks |
Re: How to make code smaller--saving steps and writing one linersby perrin (Chancellor) |
on May 09, 2009 at 03:46 UTC ( [id://762996]=note: print w/replies, xml ) | Need Help?? |
In general, making things easy to read is more important than making them short. In this case though, I'd agree that you're taking the long way around without a good reason. I'd do something like this (untested!):
P.S. Please use strict and warnings!
In Section
Seekers of Perl Wisdom
|
|