I am using the following piece of code to check to see if online 23 the word 'Running' appears between pos 11 and 19.
I have two questions. 1. Is this the correct format to do this? 2. How can I just output that area that I am checking to make sure it is looking at the right place? Thank you #open a file with the filehandle open WORKFLOW, "+<..\\..\\workflow.txt" or die "Cannot open Workflow $!\n"; my $data = <WORKFLOW> for (1..21); #Testing to make sure I am #grabbing the correct data---- seek(WORKFLOW, 22, 0); #This will put you at row 23.--- $_=<WORKFLOW>; /("Running")/; #Now if you want, you can also check #to make sure that this was found in #the right column by checking @- and @+ if($-[0] == 10 && $+[0] == 18) { #Send and email if the word is not found } </code> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]