Date: Fri, 15 Sep 2000 13:02:20 +0100 From: Mark Ovens <marko@freebsd.org> To: chat@freebsd.org Subject: perl(1) variable declarations Message-ID: <20000915130220.C257@parish>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000915130220.C257>