![]() |
|
"be consistent" | |
PerlMonks |
How to Test if Two Arrays are Ordered in the Same Wayby monkfan (Curate) |
on Jun 06, 2005 at 05:44 UTC ( #463839=perlquestion: print w/replies, xml ) | Need Help?? |
monkfan has asked for the wisdom of the Perl Monks concerning the following question:
This is an attempt to save a thread in SoPW which I thought can be useful for others. There are already incredible answers in the thread, so feel free to check in SoPW. Please don't misunderstand me. I honestly think this can be useful. I don't mean to boost my XP here, or in that thread which I posted. Here I wanted to test if an array is of a _same order_ with another, left array is always be greater/superset or equal to the right one. Here is my current code. Currently the code give correct answer for the Second Case. How can I modify it such that it's also correct for the First Case? Now it prints: The desired answer is:
Regards, Edward Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|