From owner-freebsd-chat Wed Jul 19 8:13:18 2000 Delivered-To: freebsd-chat@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id BAF9D37B835 for ; Wed, 19 Jul 2000 08:13:12 -0700 (PDT) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id RAA44083; Wed, 19 Jul 2000 17:13:08 +0200 (CEST) (envelope-from olli) Date: Wed, 19 Jul 2000 17:13:08 +0200 (CEST) Message-Id: <200007191513.RAA44083@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-chat@FreeBSD.ORG Reply-To: freebsd-chat@FreeBSD.ORG Subject: Re: vinum X-Newsgroups: list.freebsd-chat In-Reply-To: <8l2c48$m0a$1@atlantis.rz.tu-clausthal.de> Organization: Administration TU Clausthal MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In list.freebsd-chat Ben Smithurst wrote: > ok, who's going to give me the Perl one-liner to do that? FWIW, here's the shell one-liner. dc is your friend. :) olli@dorifer:~> echo 22322600044678729P | dc | rev IN VINO olli@dorifer:~> echo 22322600044678990P | dc | rev NO VINO There's no need to hack 10 lines of C or (even worse) one line of unreadable perl. ;) Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) Addresses will change soon!! If in doubt: www.fromme.com "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message