Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!decwrl!ucbvax!NISC.SRI.COM!cwilson From: cwilson@NISC.SRI.COM (Chan Wilson) Newsgroups: comp.lang.perl Subject: structs? Message-ID: <18249@fs2.NISC.SRI.COM> Date: 1 Jul 90 12:07:18 GMT Reply-To: cwilson@NISC.SRI.COM (Chan Wilson) Organization: Network Information Center; SRI International Lines: 27 I've got a data file that is of the format struct; that is, data is written out with a C definition of thus: struct load { time_t time; ushort load; }; (note that this is on a sun, and is included, giving the struct for time) Now, reading the data from C is trivial; problem is, what I do with the data once I've read it is far more appropriate to perl than C. However, I don't see anything in the man page in regards to structs, other than a brief mention in the area of pack/unpack. Is it possible to read this file from perl, or would it be easier all around to use a simple C program to read the data, then pipe it into perl? Thanks.. --Chan -- For the snark >was< a boojum, you see... -- Chan Wilson SRI International, Network Information Center Inet:cwilson@nisc.sri.com AOL:cwilson GEnie:cwilson6 verbal:415/856-6612 -- I ain't the prez of this company, don't take my word as gospel. --