[Israel.pm] pack vs. different architectures
Roman M. Parparov
romm at empire.tau.ac.il
Tue Feb 22 01:20:31 PST 2005
Yes, I solved it a few days ago, thanks:
my $str =
pack('a8',$hdr->{id}) .
pack('f',$hdr->{lat}) .
pack('f',$hdr->{lon}) .
pack('f',$hdr->{t}) .
pack('N',$hdr->{nlev}) .
pack('N',$hdr->{flag});
syswrite(DAT,$str);
The 'N' format solved it, also there was a way to force the endianess in
the external program configuration which helped.
--
Roman M. Parparov - NASA EOSDIS project node at TAU technical manager.
Email: romm at empire.tau.ac.il http://www.nasa.proj.ac.il/
Phone/Fax: +972-(0)3-6405205 (work), +972-(0)50-734-18-34 (home)
----------------------------------------------------------------------
The economy depends about as much on economists as the weather does on
weather forecasters.
-- Jean-Paul Kauffmann
More information about the Perl
mailing list