From owner-freebsd-questions Mon Nov 27 4:35:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from frontier.netnology.com.au (frontier.netnology.com.au [203.33.30.19]) by hub.freebsd.org (Postfix) with ESMTP id 6C51537B4C5 for ; Mon, 27 Nov 2000 04:35:55 -0800 (PST) Received: from dogbolter ([203.33.30.209]) by frontier.netnology.com.au (8.8.7/8.8.7) with SMTP id UAA08157 for ; Mon, 27 Nov 2000 20:42:55 +0800 From: "Craig Beasland" To: Subject: OT Perl question Date: Mon, 27 Nov 2000 20:41:55 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, I am trying to build a Netscape Client Kit and have 1 final problem. You take all the data from the user and write a perl script which passes it back to the Netsape program. I am not sure of how to begin with the perl script. Is there anyone out there who can help. The instructions from Netscape are as follows... ======= The binary file format used by this MIME type is simple, yet extensible. It consists of consecutive name/value pairs separated by 4 bytes of size information: | 4 bytes | ------ x bytes ------ | 4 bytes | ------ y bytes ------ | (x) (name) (y) (value) The parser iterates as follows until it reaches the end of the stream: Read 4 bytes of binary data and cast to int for size of Name in bytes (x) Read (x) bytes of ASCII data for the name Read 4 bytes of binary data and cast to int for size of Value in bytes (y) Read (y) bytes of ASCII data for the value ================ cheers craig To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message