in reply to unpack into arrayrefs?
If the data shown in your OT is what you expect, make sure you get what you expect (S< or v instead of S), as that would otherwise fail on big-endian machines.
my $data = pack "H*" => "0000230ebb0000002b0ece000000330ee200"; my $f += [ map [ unpack "(CCS<S<)" ] => unpack "(A6)*" => $data ];'
or
my $data = pack "H*" => "0000230ebb0000002b0ece000000330ee200"; my $f += [ map [ unpack "(CCvv)" ] => unpack "(A6)*" => $data ];'
See this overview for what it means.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unpack into arrayrefs?
by ikegami (Patriarch) on Feb 22, 2022 at 17:15 UTC |