Ok in Perl there is a function called "pack".
I'm wondering if there is a simlar function in PB or a way of doing somethign similar. For people not familar with Perl or this funciton in Perl he's the dicription of it:
Here's the line of code I'm trying to convert to PB6:
Tahnks for any help!
------------------
Thank you,
Ryan M. Cross
Webmaster FlexiFish Inc. UK
Likuid Creations Inc.
[This message has been edited by RyanCross (edited February 27, 2001).]
Code:
pack(TEMPLATE, LIST);
Takes an array or list of values and packs it into a binary structure, returning the string containing the structure. The TEMPLATE is a sequence of characters that gives the order and type of values.
Code:
$buffer = pack("Nnna*", 1, 1, length($nickname), $nickname);
------------------
Thank you,
Ryan M. Cross
Webmaster FlexiFish Inc. UK
Likuid Creations Inc.
[This message has been edited by RyanCross (edited February 27, 2001).]
Comment