Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!ucsd!ucbvax!ucdavis!csusac!utgard!chris From: chris@utgard.uucp (Chris Anderson) Newsgroups: comp.lang.perl Subject: Uniq, anyone? Summary: does anyone have one? Message-ID: <1990Oct12.075314.15054@utgard.uucp> Date: 12 Oct 90 16:27:44 GMT Distribution: na Organization: QMA, Inc., Rancho Cordova, California Lines: 18 FollowupTo: comp.lang.perl ReplyTo: chris@utgard.UUCP (Chris Anderson) On occasion, I find myself wanting something on the order of: @foo = (1,1,2,2,3,3); @bar = &uniq (@foo); Where @bar contains: 1 2 3 I've made a couple of stabs at coding this and haven't come up with anything that's very efficient. Has anyone made such a beast? Chris -- | Chris Anderson | | QMA, Inc. email : {csusac,sactoh0}!utgard!chris | |----------------------------------------------------------------------| | My employer never listens to me, so why should he care what I say? |