in reply to Re: Check multiple lines exist in a record
in thread Check multiple lines exist in a record

Hi thanos1983, Thanks for your help. Yes part of my questions were answered in that post but I still have other questions relating to resolving the entire problem. In the example program I provided I am trying to trigger the scenario were two lines are found to exist in an input file, in this case the lines CFU-TS10-ACT and CFB-TS10-ACT. If I change the if statement to the following then this works fine as would be expected
if (/\t*CF=(CFU-TS10-ACT-(NONE|\d+))/)
But I do not know how to check for the existence of two lines.

Replies are listed 'Best First'.
Re^3: Check multiple lines exist in a record
by thanos1983 (Parson) on Mar 26, 2018 at 14:55 UTC

    Hello again gbwien,

    Try something like this:

    Since you did not provide us with more than one subsection of your file or desired output I am not able to help you more than that.

    Hope this helps, BR.

    Seeking for Perl wisdom...on the process of learning...not there...yet!