- or download this
my ($value,$key) = $_ =~ /^([^\|]+)\|(.*)/;
- or download this
my ($key,$value) = split(/\|/,$_,2);
next if $seen{$value};
print "$key: $value\n";
$seen{$value}++;
- or download this
my $index = index($_,'|');
my $key = substr($_,0,$index);
my $value = substr($_,$index);