in reply to Re^2: How to sort record using pack function ?
in thread How to sort record using pack function ?
Could you shared how the program knows the record length ?
I'm not sure I understand this question. You have defined the 'record length' to be two bytes (16 bits) in little-endian (or 'VAX') order in the second and third positions in your example string. The 'v' unpack template specifier unpacks just such a value. (The 'x' skips over the first character/byte position.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to sort record using pack function ?
by bh_perl (Monk) on Sep 02, 2010 at 03:51 UTC | |
by ikegami (Patriarch) on Sep 02, 2010 at 04:48 UTC | |
by AnomalousMonk (Archbishop) on Sep 02, 2010 at 04:20 UTC |