Parsing Binary data with Perl

Friday, May 13th, 2005 at 12:56 pm

Yipes! Another blog post. Yeah, I decided that I’ve been neglecting this blog and not giving it the attention it deserves. So here is another post.

I’ve been writing Perl stuff this morning. A few years ago I bought a CD containing the 100 Club letterbox database as a Superbase (SBF) database file with a Windows only front-end. I’m currently in the process of parsing the data file so I can put the data into a database that I can use with Linux instead (PostgreSQL).

I was having trouble trying to get a piece of the input file to be treated like a 16 bit unsigned integer. Then I found the unpack function. Very useful. I don’t use Perl often so I’m not familiar with most of it. It seems like a good language to parse stuff with, it doesn’t feel as suitable for other types of programming though.

One Response to “Parsing Binary data with Perl”

  1. http://gemmapeter.co.uk » Blog Archive » Parsing Superbase SBF files Says:

    [...] For those of you that read my posts ages ago about parsing Superbase files with Perl (Parsing Progress and Parsing Binary data with Perl), here’s an update [...]