in reply to Creating trailer on packets
Sorry if I'm missing something, but isn't this what pack() is for? E.g.
my $packet = pack "a60", $data; [download]
I'm afraid I don't know anything about packet structures.
Jim