in reply to Perl binary file
Hi
After some digging, would this work?
print $out pack('f<',2.5) ; #single, little endian print $out pack('d<',2.5) ; #double, little endian print $out pack('f>',2.5) ; #single, big endian print $out pack('d>',2.5) ; #single, big endian
Is there a diference between 'd' or 'D' (or 'f' and 'F')which can create incompatible issues? And as far the append, will it be sequencial?
Kind regards
Kepler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl binary file
by soonix (Chancellor) on Dec 29, 2017 at 10:01 UTC | |
|
Re^2: Perl binary file
by Anonymous Monk on Dec 31, 2017 at 09:35 UTC |