To the Perl gurus,
It seems to me it should work (although looking in perldoc perlop I can't
seen an exact example), but I get:-
start quote==
Argument "" isn't numeric in array element at
D:\perl\scripts\DAMS\modules\RANGECHK.plx line 31, line 2
(#1)
(W numeric) The indicat
>if ($printLine[$state..3] =~ /^/)
1. The syntax $foo[] signifies a single element of array @foo.
The . bit is in scalar context and should evaluate to a *single*
*numeric* value. Hence the complaint:
Argument "" isn't numeric in array element
2. When you use a variable tha
r time and explanations.
Murray Webster
-Original Message-
From: Me [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 July 2001 16:12
To: Webster, Murray; [EMAIL PROTECTED]
Subject: Re: Match range of array elements?
>if ($printLine[$state..3] =~ /^/)
1. The syntax $foo[] si
- --
00:56:23.0 15:34:01.8 04:34:15.1 09:52:56.5
Once again thanks for taking the time.
Cheers
Murray Webster
-Original Message-
From: Me [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 July 2001 16:12
To: Webster, Murray; [EMAIL PROTECTED]
Subject: Re: Match range of array ele
I don't know why the shorter version isn't working for you.
I know the basic code fragment itself is fine.
I notice that your shorter version has four dashes rather
than the five in the longer version. Is that it? Other than that,
I suggest you use the debugger or just pile in prints to see
what'