No such thing as a small change | |
PerlMonks |
Re: perl array matrixby Laurent_R (Canon) |
on Apr 12, 2015 at 11:11 UTC ( [id://1123202]=note: print w/replies, xml ) | Need Help?? |
It is not very clear to me. My guess is that you are trying to use an array of arrays, probably something like this:
but you'll have to explain why "2,7,12,16" and "2,4,7,12" should return true and why "1,6,8,12" and "1,5,14,15" should return false. Well, "1,5,14,15" being false, I can understand a plausible reason, because 15 is nowhere in the data structure, but why "1,6,8,12" should be false?
Je suis Charlie.
In Section
Seekers of Perl Wisdom
|
|