I have serious, basic confusion about your question. According to my understanding of Serialization or Marshalling, only the pack/unpack approach you show qualifies at all. Creating an anonymous array or hash and then accessing an element or elements of the array or hash does not qualify because it cannot be done, e.g., over a network or with an intervening step of storage to a disk.
Can you clarify your definitions and/or application?
In reply to Re: Data structures benchmark(pack vs. arrays vs. hashes vs. strings)
by AnomalousMonk
in thread Data structures benchmark(pack vs. arrays vs. hashes vs. strings)
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |