in reply to Re^4: check possible combination of sum using given array
in thread check possible combination of sum using given array
I have just learnt a new word, thanks! but a word totally irrelevant here AFAIC.
My motivation was to exit the sub in the most efficient way, the equivalent of C's void sub(){ ... return; }. But there are contexts in Perl ... so perhaps return undef; or return 0; is a better/more efficient way. If not, then at least as far as showing intentions, it must be better. So, your remark was beneficial to me.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: check possible combination of sum using given array
by karlgoethebier (Abbot) on Jul 11, 2019 at 14:44 UTC | |
by choroba (Cardinal) on Jul 11, 2019 at 16:44 UTC | |
by karlgoethebier (Abbot) on Jul 11, 2019 at 18:02 UTC |