in reply to Using ioctl()

You're right about Class::Struct. pack is the function designed to create C-style structs. If ioctl returns values using the struct, you can unpack it using unpack.