Should the first line be:
if ($word[0] eq $word2[0])
???
Eric
Eric Winter, SSAI, NASA GSFC Code 692
[EMAIL PROTECTED]
(301) 286-2316 Office: T2, Room 56
On Mon, 22 Apr 2002, Angel Taubner wrote:
>
>
> Good morning,
>
> This is probably just something stupid I've done to the syntax but I've been
> trying to get it to work and cant seem to figure it out. Any ideas on why this
> if statement would error:
> if (@word[0] == @word2[0])
> { if (@line[$temp] == @line2[$temp2])
> { $loopControl = 1; }
> else
> { print MYOUT @line[$temp]; }
> }
> elseif ($temp2 = $index2)
> { print MYOUT @line[$temp]; }
> else
> { $temp2++; }
> }
>
> Is the problem my nesting? I wasnt able to find an example that nested an if
> with an else.
>
> Thanks
>
> Angel
>
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs