Think about Loose Coupling | |
PerlMonks |
Re: sub as mathematical functionby talexb (Chancellor) |
on Sep 04, 2019 at 13:47 UTC ( [id://11105594]=note: print w/replies, xml ) | Need Help?? |
This is a good example of a bad 'code smell'. If you find yourself doing a copy and paste for more than two lines .. you are probably doing it wrong. Also, a test script would have confirmed that this function had implemented the ideal behaviour.
In Section
Seekers of Perl Wisdom
|
|