If you're ever dealing with C Binary API's from Perl Code, via the syscall, ioctl, or fcntl functions, you need to know how to construct memory in a C Compatible way.
For instance, if you were ever dealing with some function that expected a timespec, you'd look into /usr/include/time.h and find:
s...