http://www.perlmonks.org?node_id=1031112


in reply to Re^3: Convert Non-standard C struct data to standard C struct
in thread Change the data to have the format which is like a C struct.

Yes, and I also chose my example in a way to show how to declare nested structures, which is quite different from the OP's example.