Jonathan Musto wrote:
>
> Hi all,
Hello,
> 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
> etcetc
>
> does anyone know of a regular expression to get rid off all the repeated
> data, so that i just have a list as follo
On Mon, 2002-10-21 at 16:09, [EMAIL PROTECTED] wrote:
> does anyone know of a regular expression to get rid off all the repeated
> data, so that i just have a list as follows
I don't know a regex, but you could use a hash to ensure that you only
have one instance of each item:
my %data;
while (my
if your just looking to remove dup lines from a file, this should work:
open (F, "yourfile") or die "...";
my %uniq;
$uniq{$_}++ while ;
print for keys %uniq;
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:jonathan.musto@;bt.com]
> Sent: Monday, October 21, 2002 11:09 AM
> To: [EM