in reply to Re^2: Code Interpretation
in thread Code Interpretation
Your code will not produce the same output as the OP's.
As long as grep doesn't change the order of 0..$#allrefs, I'd expect the result to be in the same order as by the OP.
About the performance point, this depends on wether %uni_refs has the same size as @allrefs, or not.
If %uni_refs is just a small part of @allrefs, ikegami's solution is faster even with the additional sort...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Code Interpretation
by wanna_code_perl (Friar) on Jul 30, 2014 at 11:30 UTC |