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
- 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.
So here is the problem. How do
-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 my code using -w and strict.
Excellent
- 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: Lysander [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday
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 PROTECTED]
For additional commands, e-mail
, 2002 2:36 PM
Subject: Re: Trying to use strict
- 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
]
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]
To: Lysander [EMAIL PROTECTED]; [EMAIL PROTECTED
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 strict.
-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 [EMAIL PROTECTED]
To: 'Lysander' [EMAIL PROTECTED
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 de-reference the
10 matches
Mail list logo