Perl Monk, Perl Meditation | |
PerlMonks |
Re: Create unique array --the hard way!by kcott (Archbishop) |
on Mar 07, 2014 at 21:11 UTC ( [id://1077457]=note: print w/replies, xml ) | Need Help?? |
Perhaps this will be suitable (for your class exercise):
Output:
Update (alternative solution): You could even skip the creation of the unsorted array (your @array_q3):
Output:
-- Ken
In Section
Seekers of Perl Wisdom
|
|