Leser: 23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use Data::Dumper; my %names; open my $fh, '<', $filename or die $!; while( my $line = <$fh> ) { chomp $line; my ($name) = $line =~ m! \A 1\. (.*) \z!x; next unless $name; $names{$name}++; } close $fh; print Dumper \%names;
2010-10-21T14:58:12 renee
my ($name) = $line =~ m! \A 1\. \s* (.*) \z!x;