From owner-freebsd-current Wed Jun 7 09:37:44 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA24913 for current-outgoing; Wed, 7 Jun 1995 09:37:44 -0700 Received: from wc.cdrom.com (wc.cdrom.com [192.216.223.37]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA24907 for ; Wed, 7 Jun 1995 09:37:42 -0700 Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by wc.cdrom.com (8.6.12/8.6.12) with ESMTP id JAA15833 for ; Wed, 7 Jun 1995 09:32:39 -0700 Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.18.7]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id RAA04817; Wed, 7 Jun 1995 17:19:59 +0200 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id RAA18626; Wed, 7 Jun 1995 17:19:41 +0200 Date: Wed, 7 Jun 1995 17:19:41 +0200 Message-Id: <199506071519.RAA18626@caramba.cs.tu-berlin.de> To: freebsd-current@FreeBSD.ORG (FreeBSD-current users), joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Subject: perl[45] (Re: sup is fetching whole src tree) In-Reply-To: <199506040750.JAA26622@uriah.heep.sax.de> References: <199506040346.UAA18045@gndrsh.aac.dev.com> <199506040750.JAA26622@uriah.heep.sax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: current-owner@FreeBSD.ORG Precedence: bulk Try: $ perl4 -cw foo.perl $ perl5 -cw foo.perl -c causes perl to check the syntax of the script and then exit without executing it. -w prints warnings about identifiers that are mentioned only once, and scalar variables that are used before being set. Also warns about redefined subroutines, and references to undefined filehandles or filehandles opened readonly that you are attempting to write on. Also warns you if you use == on values that don't look like numbers, and if your subroutines recurse more than 100 deep. Wolfram J. Wunsch writes: >As Rodney W. Grimes wrote: >> >> > While you're at it, how about making our custom version perl 5 clean? >> >> I am *NOT* a perl hacker, I can just scrap by fixing broken things. That >> and can it be made to be both perl 4.136 and 5.0 clean? Remeber, FreeFall >> runs releases, not the cutting edge, and the release is and will be for >> some time at perl 4.136. > >Should be possible. Perl 5 has some syntax extensions, e.g. an >unquoted @ within a "" string is now expanded; fixed scripts (that do >not use the extensions, but take care of them) should be backwards >compatible to Perl 4 however. > >I've been told that the perl 5 compiler gives a detailed error message. >I don't have perl 5 by now, so please don't ask me... (yet).