From owner-freebsd-chat Fri Sep 15 5: 3: 0 2000 Delivered-To: freebsd-chat@freebsd.org Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by hub.freebsd.org (Postfix) with ESMTP id 6889337B42C for ; Fri, 15 Sep 2000 05:02:58 -0700 (PDT) Received: from parish ([62.255.96.110]) by mta03-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000915120253.EMQA13676.mta03-svc.ntlworld.com@parish> for ; Fri, 15 Sep 2000 13:02:53 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8FC2LS01143 for chat@freebsd.org; Fri, 15 Sep 2000 13:02:21 +0100 (BST) (envelope-from mark) Date: Fri, 15 Sep 2000 13:02:20 +0100 From: Mark Ovens To: chat@freebsd.org Subject: perl(1) variable declarations Message-ID: <20000915130220.C257@parish> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i Organization: Total lack of Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What is the difference (if any) between using ``use vars'' and ``my'' to declare global variables? Reading perlmodlib(1) and the book Learning Perl they appear interchangeable, but are they? Is use vars qw/ $foo $bar /; the same as my $foo; my $bar; when used for global variables? -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message