Apr 28, 2011, 4:11 AM
Post #4 of 4
You can find out whether it is a command line by testing
substr($line,0,1) eq "\t"
This basically leaves you with the prerequisite lines (actually, you have also to care about empty lines, lines containing variable definitions, and comments, but you didn't ask about them, so I guess you know how to handle them).
For the target lines, you could do a
to get at the individual fields. The first item should be the target, the other ones are the prereqs.