if your just looking to remove dup lines from a file, this should work: open (F, "yourfile") or die "..."; my %uniq; $uniq{$_}++ while <F>; print for keys %uniq;
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:jonathan.musto@;bt.com] > Sent: Monday, October 21, 2002 11:09 AM > To: [EMAIL PROTECTED] > Subject: Tidying up repeated data > > > Hi all, > > If i have a text file with a list of values i.e. > > ght-Skem > ght-Skem > ght-Skem > hjy-TOB > hjy-TOB > hjy-TOB > etc....etc.... > > does anyone know of a regular expression to get rid off all > the repeated > data, so that i just have a list as follows > > ght-Skem > hjy-TOB > > Any help would be much aprreciated! > > cheers > > Jonathan Musto > > > > BT Ignite Solutions > Telephone - 0113 237 3277 > Fax - 0113 244 1413 > E-mail - <mailto:Jonathan.Musto@;bt.com> [EMAIL PROTECTED] > http://www.technet.bt.com/sit/public > <http://www.technet.bt.com/sit/public> > > > British Telecommunications plc > Registered office: 81 Newgate Street London EC1A 7AJ > Registered in England no. 1800000 > This electronic message contains information from British > Telecommunications > plc which may be privileged or confidential. The information > is intended to > be for the use of the individual(s) or entity named above. If > you are not > the intended recipient be aware that any disclosure, copying, > distribution > or use of the contents of this information is prohibited. If you have > received this electronic message in error, please notify us > by telephone or > email (to the numbers or address above) immediately. > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]