Welcome to the Monastery | |
PerlMonks |
Re: Comparing Two arraysby Zaxo (Archbishop) |
on Sep 19, 2002 at 15:56 UTC ( [id://199209]=note: print w/replies, xml ) | Need Help?? |
This is a faq, but here goes: exists is used to prevent autovivication of new keys from @array1 in %hash. Update: This method's run time is O(NlogN) or therabouts, while your attempt is O(N**2). ++fruiture for spotting a thinko, corrected. After Compline,
In Section
Seekers of Perl Wisdom
|
|