RE: passing values to sub

2001-08-05 Thread Steve Howard
ginal Message- From: Paul Johnson Sent: Sun 8/5/2001 4:33 PM To: Birgit Kellner Cc: [EMAIL PROTECTED] Subject: Re: passing values to sub On Sun, Aug 05, 2001 at 10:15:09PM +0200, Birgit Kellner wrote: > --On Son

Re: passing values to sub

2001-08-05 Thread Paul Johnson
On Sun, Aug 05, 2001 at 10:38:21PM +0200, Birgit Kellner wrote: > > > --On Sonntag, 05. August 2001 22:33 +0200 Paul Johnson <[EMAIL PROTECTED]> > wrote: > > > > > sub sonic > > { > > my ($numhits, $maxhits, @hits) = @_; > > ... > > } > > > sub genius { > print "thank you"; > } Nah.

Re: passing values to sub

2001-08-05 Thread Paul Johnson
On Sun, Aug 05, 2001 at 04:39:44PM -0400, Mike Rapuano wrote: > I'm just a beginnner BUT why not use HashRef for the @hits array to make > all data going to sub sonic a scalar values > > Then sub sonic would be... > > sub sonic > { > my ($numhits, $maxhits, $hits) = @_; > ... > } Cert

Re: passing values to sub

2001-08-05 Thread Birgit Kellner
--On Sonntag, 05. August 2001 22:33 +0200 Paul Johnson <[EMAIL PROTECTED]> wrote: > > sub sonic > { > my ($numhits, $maxhits, @hits) = @_; > ... > } > sub genius { print "thank you"; } Birgit Kellner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: passing values to sub

2001-08-05 Thread Mike Rapuano
MIke -Original Message- From: Paul Johnson Sent: Sun 8/5/2001 4:33 PM To: Birgit Kellner Cc: [EMAIL PROTECTED] Subject: Re: passing values to sub On Sun, Aug 05, 2001 at 10:15:09PM +0200, Birgit Kellner

Re: passing values to sub

2001-08-05 Thread Paul Johnson
On Sun, Aug 05, 2001 at 10:15:09PM +0200, Birgit Kellner wrote: > --On Sonntag, 05. August 2001 19:51 +0200 Paul Johnson <[EMAIL PROTECTED]> > wrote: > > > html_record($numhits, $maxhits, @hits); > > > I had figured that much, but got stuck on the other end: The sub in the > second file, config

Re: passing values to sub

2001-08-05 Thread Birgit Kellner
--On Sonntag, 05. August 2001 19:51 +0200 Paul Johnson <[EMAIL PROTECTED]> wrote: > On Sun, Aug 05, 2001 at 07:27:25PM +0200, Birgit Kellner wrote: >> I have two files called html.pl and config.pl, both of which require >> each other. >> >> The subroutine &html_record is contained in the other

Re: passing values to sub

2001-08-05 Thread Paul Johnson
On Sun, Aug 05, 2001 at 07:27:25PM +0200, Birgit Kellner wrote: > I have two files called html.pl and config.pl, both of which require each > other. > > The subroutine &html_record is contained in the other file, config.pl. I > want to make the array @hits as well as the values of $numhits and