in reply to reading C data structure
You don't. Or, at least, your question is open to so many different interpretations it's not possible to know what you actually want to do.
Things you may want to do are:
- Read binary data from a file written by a C application
- Pass data from XS back to Perl
- Recreate in Perl a data structure serialised by a C application
- Recreate in Perl a C data structure specified in a .h file
- any number of other possible scenarios I haven't thought of
True laziness is hard work
|
---|
In Section
Seekers of Perl Wisdom