Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 1996 23:22:31 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        kashmir@umiacs.UMD.EDU (Mike Grupenhoff)
Cc:        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:  <199602132222.XAA05878@uriah.heep.sax.de>
In-Reply-To: <Pine.SUN.3.91.960213113802.19238C-100000@xanadu.umiacs.umd.edu> from "Mike Grupenhoff" at Feb 13, 96 11:40:11 am

next in thread | previous in thread | raw e-mail | index | archive | help
As Mike Grupenhoff wrote:
> 
> 
> > > >   require "gethostname.pl";
> > > >   $thishost = &gethostname'gethostname;
> 
> Perhaps you should just name the sub "main'gethostname", so calls would 
> simply be
> 
> 	require 'gethostname.pl';
> 	$thishost = &gethostname;

I though ``package main;'' is reserved for the base source file?

-- 
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?199602132222.XAA05878>