diff options
author | Ole Kristian Lien <ole.k.lien@gmail.com> | 2009-12-10 06:22:08 +0000 |
---|---|---|
committer | Ole Kristian Lien <ole.k.lien@gmail.com> | 2009-12-10 06:22:08 +0000 |
commit | eb0f5ffae76f0834076793b5755e1e7c12705e88 (patch) | |
tree | c4f2b9aa79e14e9bb4cab1fddab4828811571741 /tools/csv | |
parent | f109c2fc7c7ed195003d9deb20710b49d86f12c8 (diff) |
Diverse fikser :)
Diffstat (limited to 'tools/csv')
-rwxr-xr-x | tools/csv | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -28,7 +28,10 @@ my $title; my $what; my $date; my $location; +my $genre; my $license; +my $organization; +my $contact; my @takk; my @url; @@ -58,8 +61,14 @@ while (<CSV>) { $date=$index; } elsif ($_ eq "Location") { $location=$index; + } elsif ($_ eq "Genre") { + $genre=$index; } elsif ($_ eq "License") { $license=$index; + } elsif ($_ eq "Organization") { + $organization=$index; + } elsif ($_ eq "Contact") { + $contact=$index; } elsif ($_ eq "Takk") { push(@takk, $index); } elsif ($_ eq "URL") { @@ -86,8 +95,14 @@ while (<CSV>) { print "$columns[$date]"; } elsif ($info eq "location") { print "$columns[$location]"; + } elsif ($info eq "genre") { + print "$columns[$genre]"; } elsif ($info eq "license") { print "$columns[$license]"; + } elsif ($info eq "organization") { + print "$columns[$organization]"; + } elsif ($info eq "contact") { + print "$columns[$contact]"; } elsif ($info eq "takk") { foreach (@takk) { my $takk = $columns[$_]; |