in reply to Reading nested records in binary data
Corion's answer gives the guts of what you need to know. If you want a rather full on example of unpack in action take a look at Updated QuickTime format movie file dumper.