Hi all. I've been racking my brains out trying to get Perl to write binary files for me. Here is my situation. For my Operating Systems class, we are designing a file system. One of the requirements is that the file system needs to be saved to disk as a binary file. I have a few large array of arrays and hash of hashes in my code, so I was hoping to be able to use Data::Dumper to dump and retireve the data structures. However, I do not know how to open a file in binary mode (from what I understand, binmode() does not work for Unix which is the envrionment where I am coding) or write binary data to that file.
I was thinking that I would record the output from Data::Dumper into a scalar and write this scalar in binary mode to the disk. Can anyone give me any help with this???? -------------------------------------------------------------------------- John Pitchko 3rd Year Computer Science - University of Regina Systems Trainee - Data Services - SGI All e-mails and attachments are certified virus free!