Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Comparing packed variablesby Jaap (Curate) |
on Mar 17, 2021 at 23:12 UTC ( [id://11129856]=perlquestion: print w/replies, xml ) | Need Help?? |
Jaap has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to compare packed variable sin a meaningful way in perl? I have some binary data in files, some files have uint8's others uint16 etc. I'm trying to search for values in a certain range. If possible i'd like to avoid having to unpack all that binary data. Why does it only work for values up to 8 bits? The 'S' is supposed to make unsigned 16-bit values. Does this have to do with endian-ness? (i'm on x86-64)
Back to
Seekers of Perl Wisdom
|
|