in reply to (tye)Re2: Sending an array through a socket!
in thread Sending an array through a socket!

Understood. I had one question about your packet construction, this part:
$ClassSpec, $TransID_Hi, $TransID_Lo, $Rez, $AttMod )
. $Data;


confuses me.... Why is there a . before $data and $data is not part of the pack?
  • Comment on Re: (tye)Re2: Sending an array through a socket!

Replies are listed 'Best First'.
(tye)Re3: Sending an array through a socket!
by tye (Sage) on Oct 05, 2001 at 22:30 UTC

    Because $Data doesn't need to be transformed so I can just append it to the output from pack. Also, because I didn't want to look up how to do that inside pack. (:

    Having now looked it up, you can use "a*" or "A*" to include an untransformed string so append " a*" to the first argument to pack and change the ") ." to ", " if you like.

            - tye (but my friends call me "Tye")