We don't bite newbies here... much | |
PerlMonks |
Re: Reconstructing List Order From Partial Subsetsby rbsgoat (Novice) |
on Jul 26, 2006 at 15:41 UTC ( [id://563826]=note: print w/replies, xml ) | Need Help?? |
set up an array of values that define the order. if the index of the current value is less than the previous value warn and inc the hash counter. when doing the final list just foreach over the array and print out the number of items in the correct order. print "$item\n" x $hash{$item};
In Section
Seekers of Perl Wisdom
|
|