I am not sure, but I think it has to do with $nextline=$line++; It sounds like $line is a text string and you are autoincrementing it here? Maybe what you really want is $nextline++; to count the number of lines?
-----Original Message----- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 11:49 AM To: [EMAIL PROTECTED] Subject: If...Statement I am trying to start on a specific line of code and read a sub string of that code and also read the next line in the sequence and a sub string of that line. If either of the values are false then do something. I am using the following code: for(my $i=0; $i<22; $i++){<WORKFLOW>}; #This will put you at row 23.---- $_=<WORKFLOW>; my $line=$_; my $nextline=$line++; if ((substr($line, 42, 7) eq "Running") || (substr($nextline, 42, 7)eq "Running")) Can anyone see what I am doing in correct? Thanks Lance Prais -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]