Sha256: 89bdefb57372a1f806545854ea73495b71df339eb3c4fcce244b24c9a3293099
Contents?: true
Size: 326 Bytes
Versions: 25
Compression:
Stored size: 326 Bytes
Contents
#!/usr/bin/perl use warnings; use strict; while (<>) { chomp; s/#.*$//; s/^\s+//; s/\s+$//; next if /^$/; die "format error: $_" unless (my ($a, $b, $c) = /^([a-z0-9.-]+)\s+([a-z0-9-]+)(?:\s+(.+))?$/); if ($c) { print qq( { "$a",\t"$b",\t"$c" },\n); } else { print qq( { "$a",\t"$b",\tNULL },\n); } }
Version data entries
25 entries across 25 versions & 1 rubygems