Created
August 30, 2010 15:24
-
-
Save dcoder2099/557551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# walk down a file until you get to the data section, then suck it in | |
# (presumes data section is preceded by a row of separator-dashes. :) | |
while(<>) { | |
chomp; | |
until (/-------------------- ------------------/) { ; } # do nothing until we get these | |
while(<>) { | |
chomp; | |
($object_id, $description) = ($1, $2) if m/(\d+)\s+(\w+)/; | |
print "$object_id, $description\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment