in reply to while behaviour on binary files
Not that it's sensible, practical or robust...my ($inf, @dat) = unpack 'a4 (L (S/(xx) XX.@2/a XX.x4/a xx))<*', do +{ local $/; <DATFILE> }; while (@dat) { my ($ID, $s1, $s2) = splice(@dat, 0, 3); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: while behaviour on binary files
by boftx (Deacon) on Nov 15, 2013 at 01:58 UTC |