No such thing as a small change | |
PerlMonks |
Re: Re: Re: is perl the best tool for this job?(emphatically Yes!)by edan (Curate) |
on Oct 20, 2003 at 12:51 UTC ( [id://300548]=note: print w/replies, xml ) | Need Help?? |
read(FH, $val, 128); Please keep in mind that read FILEHANDLE,SCALAR,LENGTH 'Attempts to read LENGTH bytes of data ...' (emphasis mine - from perldoc -f read) You mentioned that you're working with 128 bit 'frames', so you'll want to do 16 byte reads in order to get a 'frame'.
In Section
Seekers of Perl Wisdom
|
|