Just another Perl shrine | |
PerlMonks |
Re: unpack() removing databy BrowserUk (Patriarch) |
on Jan 10, 2013 at 22:17 UTC ( [id://1012750]=note: print w/replies, xml ) | Need Help?? |
Reading a binary file using realine (aka. the <> operator) is wrong. Depending on your OS and the current setting of $/, weird things can happen when a binary value (integer; short, long,long; signed, unsigned) happens to contain a byte that looks like the delimiter. You should use read or sysread or set $/ = undef and slurp, or set $/ = \nnn; and read fixed length chunks. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|