Perl: the Markov chain saw | |
PerlMonks |
Re^2: Deciding unique elements of an arrayby rolfy (Acolyte) |
on Sep 14, 2005 at 01:21 UTC ( [id://491738]=note: print w/replies, xml ) | Need Help?? |
more simple - well.... yes and no...
the 'my @b' line is the solution - it comes up with the correct info, but does involve doing a little work to get to the answer. It's definitely more simple to write :) but as for processing times etc - I really don't know if it's going to be better or not. It's a bit nasty to put this in your code without commenting it also, as I've got a few perl friends (none uber perl ppls, but 'know' perl), and none of them understood the intent :)
In Section
Seekers of Perl Wisdom
|
|