At 16:27 01.24.2002 -0500, Jeff 'japhy' Pinyan wrote:
>On Jan 24, Jim Conner said:
>
> >sub functionname {
> > my $array1 = $_[0]; # note that we are using a scalar to store the
> > my $array2 = $_[1];
> > my $array3 = $_[2];
> >
> > print join(" - ",@array1),"\n"; # and then we d
> -Original Message-
> From: Lysander [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 4:06 PM
> To: Bob Showalter; [EMAIL PROTECTED]
> Subject: Re: Trying to use strict
>
>
> - Original Message -
> From: "Bob Showalter"
On Jan 24, Jim Conner said:
>sub functionname {
> my $array1 = $_[0]; # note that we are using a scalar to store the
> my $array2 = $_[1];
> my $array3 = $_[2];
>
> print join(" - ",@array1),"\n"; # and then we de-reference the scalar
Except that you're not -- this doesn't pass
PROTECTED]
Subject: Re: Trying to use strict
-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org
At 14:53 01.24.2002 -0600, Lysander wrote:
>- Original Message -
>From: "Shawn" <[EMAIL PROTECTED]>
&
>; <[EMAIL PROTECTED]>
>Sent: Thursday, January 24, 2002 2:36 PM
>Subject: Re: Trying to use strict
>
>
> >
> > - Original Message -
> > From: "Lysander" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursda
- Original Message -
From: "Bob Showalter" <[EMAIL PROTECTED]>
To: "'Lysander'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 2:48 PM
Subject: RE: Trying to use strict
> > -Original Message-
Thursday, January 24, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Trying to use strict
But how do you pass Arrays (plural)?
Would it be
my arr1 = @_[0];
my arr2 = @_[1];
Would that work with the
my $diemessage = $_[0];
that I am already using?
Sheridan
--
To unsubscribe, e-mail: [EMAIL
- Original Message -
From: "Shawn" <[EMAIL PROTECTED]>
To: "Lysander" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 2:36 PM
Subject: Re: Trying to use strict
>
> - Original Message -
> From: "L
> -Original Message-
> From: Lysander [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 3:23 PM
> To: [EMAIL PROTECTED]
> Subject: Trying to use strict
>
>
> Okay, after reading various documents online I have decided
> to try and write
- Original Message -
From: "Lysander" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 2:23 PM
Subject: Trying to use strict
Okay, after reading various documents online I have decided to try and write my code
using -w and
strict.
Okay, after reading various documents online I have decided to try and write my code
using -w and strict.
So here is the problem. How do I pass Arrays to subs? I assume declaring everything
main:: would pretty much undermine the whole point of strict vars. So... for example
I have this sub
11 matches
Mail list logo