Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
any help would be grately appreciated$bin_data .= pack("s", $data_id); if (length($data_val) < 255) { $bin_data .= pack("C", length($data_val)); } else { $bin_data .= pack("C", 0xff); $bin_data .= pack("s", length($data_val)); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: newbie question
by polettix (Vicar) on Jul 22, 2005 at 00:17 UTC | |
|
Re: Understanding pack syntax
by pg (Canon) on Jul 22, 2005 at 02:45 UTC |