Date: Wed, 14 Feb 1996 08:35:41 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: CVS-committers@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org Subject: Re: cvs commit: src/gnu/usr.bin/perl/lib gethostname.pl Makefile Message-ID: <199602140735.IAA13566@uriah.heep.sax.de> In-Reply-To: <Pine.SUN.3.91.960213203344.21111I-100000@xanadu.umiacs.umd.edu> from "Mike Grupenhoff" at Feb 13, 96 08:39:04 pm
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602140735.IAA13566>