One thing that may not be clear... is that the '$data' item is not always going to be a string, hence my attempt to use 'C' in the template.
For some values of the '$rec_type_idx', the '$data' item may contain text (as in the original example) but it can be actual binary data (including NULs) that needs further decoding.
In reply to Re: Problems Getting the Template Correct when Using unpack()
by ozboomer
in thread Problems Getting the Template Correct when Using unpack()
by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |