From owner-freebsd-commit Tue Feb 13 23:53:19 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA22071 for freebsd-commit-outgoing; Tue, 13 Feb 1996 23:53:19 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA22046 for cvs-all-outgoing; Tue, 13 Feb 1996 23:53:03 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA22034 for cvs-gnu-outgoing; Tue, 13 Feb 1996 23:53:01 -0800 (PST) Received: from irz201.inf.tu-dresden.de (irz201.inf.tu-dresden.de [141.76.1.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA21988 Tue, 13 Feb 1996 23:52:43 -0800 (PST) Received: from sax.sax.de by irz201.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id IAA08826; Wed, 14 Feb 1996 08:51:52 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id IAA22583; Wed, 14 Feb 1996 08:51:52 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id IAA13566; Wed, 14 Feb 1996 08:35:42 +0100 (MET) From: J Wunsch Message-Id: <199602140735.IAA13566@uriah.heep.sax.de> Subject: Re: cvs commit: src/gnu/usr.bin/perl/lib gethostname.pl Makefile To: CVS-committers@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org Date: Wed, 14 Feb 1996 08:35:41 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Mike Grupenhoff" at Feb 13, 96 08:39:04 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-commit@FreeBSD.ORG Precedence: bulk As Mike Grupenhoff wrote: > > > I though ``package main;'' is reserved for the base source file? > > Actually, I meant for you to keep the package name as "gethostname", but name > the sub within it "main'gethostname". This "pushes" the sub into the main > package. See open2.pl (in the perl lib dir) for an example. > > Also, if you don't need any variables outside of the sub itself, a package > isn't even necessary. See find.pl. Well, thanks, i think i'll change it. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)