[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Getting floating point numbers from binary files



"Christopher F. Blanford" <blanf001@tc.umn.edu> writes:
>suited for this task, but I can't figure out how to get the program to
>read in the bytes as numbers:
>
>open(FILE,$filename);

read(FILE, $numbah, 4);
$nr = unpack("f", $numbah);

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "These days, though, you have to be pretty technical before you can 
    even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch