TheYoungMonk has asked for the wisdom of the Perl Monks concerning the following question:
I have written a particular piece of code for detecting multiple occurences of an element in an array. It also deletes all repeating occurences of such elements. In a haste, i coded it in the "traditional way" (using for loop, if...).
But now curious to exploit the powers of PERL..Does PERL provide any other way by which i can do the same operation in a more optimized way ?
Can the holy monks please help me exploit the hidden powers of PERL?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Optimize - Checking multiple occurences of elements in an array
by thinker (Parson) on Jan 23, 2003 at 15:54 UTC | |
|
Re: Optimize - Checking multiple occurences of elements in an array
by hardburn (Abbot) on Jan 23, 2003 at 15:18 UTC | |
|
Re: Optimize - Checking multiple occurences of elements in an array
by boo_radley (Parson) on Jan 23, 2003 at 16:11 UTC | |
|
A more complete Unique()
by dragonchild (Archbishop) on Jan 23, 2003 at 18:14 UTC | |
by Aristotle (Chancellor) on Jan 23, 2003 at 22:17 UTC | |
|
Re: Optimize - Checking multiple occurences of elements in an array
by Mr. Muskrat (Canon) on Jan 23, 2003 at 16:29 UTC | |
by ihb (Deacon) on Jan 23, 2003 at 17:10 UTC |