#open a file with the filehandle open WORKFLOW, "..\\..\\workflow.txt" or die "Cannot open Workflow $!\n"; my $data = <WORKFLOW> for (1..21); while (<WORKFLOW>){ # loop through the workflow.txt
chomp; #a) my $line=$_; print STDERR "\nline: $line"; } The above code is reading a txt file beginning at line 20. I want to input each line into an array and the parse through in and compare values in 22 to find if a condition exists. The issue is I need to break the line up into evenly divided line segments can any one recommond the best way to do this? I was thinking use hash tables.. also do you know where there is an exaplin that would help me begin? Here is the lines that need to be parsed and compared: SV_NAME CC_ALIAS TK_TASKID TK_PID TK_DISP_RUNSTATE CC_RUNMODE TK_START_TIME TK_END_TIME TK_STATUS CG_ALIAS ----------- -------- --------- ------ ----------------- ---------- --- ---------------- ------------------- ------------------------------------- ---- -------- CHK_SBL_DEV WorkMon 63526 Exited with error Background 12/12/2001 14:58:26 12/12/2001 14:58:32 ESC-00053: Error loading rule definitions Workflow Thank you -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]