From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Small Perl job for Tramp: base64 encoding/decoding Date: 29 Jul 2002 10:54:03 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x3cu29aok.fsf@kfs2.cua.dk> References: <20020727175939.A18103@tardis.ed.ac.uk> <20020727214300.A18971@tardis.ed.ac.uk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1027929233 2000 127.0.0.1 (29 Jul 2002 07:53:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2002 07:53:53 +0000 (UTC) Cc: Steve Kemp , emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Z5Lk-0000W9-00 for ; Mon, 29 Jul 2002 09:53:52 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Z5ct-0005cn-00 for ; Mon, 29 Jul 2002 10:11:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Z5M7-0004C5-00; Mon, 29 Jul 2002 03:54:15 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17Z5LQ-00041q-00 for ; Mon, 29 Jul 2002 03:53:32 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 12C1B7C019; Mon, 29 Jul 2002 07:53:31 +0000 (GMT) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) In-Reply-To: Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6130 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6130 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > Steve Kemp writes: >=20 > > Sorry to be less clear - I was suggesting that you study the code > > there as it is very small and should be straightforward to > > understand. >=20 > Unless the authors have signed papers, I'm not allowed to study the > code, I think. I'm not sure, but since it is sample code included with the Perl distribution, (location is: /usr/share/doc/perl/examples/uudecode), I would assume that the code is to be viewed as _documentation_, and that you are allowed to _read_ the code for to learn how to uuen/decode in perl. In any case, the magic part is _probably_ (I haven't looked at the code either) perl's built-in pack and unpack commands with "u" (uuencode) option. Check the perlfunc man-page for details. --=20 Kim F. Storm http://www.cua.dk