From owner-freebsd-questions@FreeBSD.ORG Wed Apr 21 14:54:13 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4703716A4CF for ; Wed, 21 Apr 2004 14:54:13 -0700 (PDT) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CF1743D41 for ; Wed, 21 Apr 2004 14:54:12 -0700 (PDT) (envelope-from kirk@strauser.com) Received: from pooh.strauser.com (pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.11/8.12.11) with ESMTP id i3LLsAIA087251 for ; Wed, 21 Apr 2004 16:54:11 -0500 (CDT) (envelope-from kirk@strauser.com) To: freebsd-questions@freebsd.org References: <4086AF7E.5050102@ukug.uk.freebsd.org> From: Kirk Strauser Date: Wed, 21 Apr 2004 16:54:02 -0500 In-Reply-To: <4086AF7E.5050102@ukug.uk.freebsd.org> (Mark Ovens's message of "Wed, 21 Apr 2004 18:29:34 +0100") Message-ID: <878ygpatfp.fsf@strauser.com> Lines: 18 X-Mailer: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Virus-Scanned: clamd / ClamAV version devel-20040415, clamav-milter version 0.70g Subject: Re: perl coding ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 21:54:13 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable At 2004-04-21T17:29:34Z, Mark Ovens writes: > $dup-number =3D substr($dup-counter, 0, length($dup-counter) - 1); Did you actually test that? I'm pretty sure Perl doesn't like dashes in variable names: % perl -e '$foo-bar =3D 1;' Can't modify subtraction (-) in scalar assignment at -e line 1, near "1= ;" Execution of -e aborted due to compilation errors. =2D-=20 Kirk Strauser "94 outdated ports on the box, 94 outdated ports. Portupgrade one, an hour 'til done, 82 outdated ports on the box." --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAhu2C5sRg+Y0CpvERAuwAAJ46n6UFQp6lZr7oBUzkYf1otYzQ9ACfXdmM XZbe+cmFlqwtDMlllSTDaBs= =Jywp -----END PGP SIGNATURE----- --=-=-=--