Thanks for your reply. firstly, I am a beginner. I am trying to write a code to do the following. suppose this is my input text file in the format
abc dsdasd dasgg gfg htrh
sdsjk sdasd ds { abc deef gheweri rew jk \
dfs grg gre ret rtr lm nop qrs\
erwe erewr gf htrh ksdj \} -fdj lf
erew fsdfj kgfk -bg1 abc dfsdf -bg2 nop fdsfs
Now - I wanted to write a PERL code to know if the string 'abc', 'dfsdf' , 'nop' and 'fdsfs' in line #5 exist between '{' and '}'. I am not able to figure out how to write the code to implement this. In case of the text file provided above, the result should be something printed like
'abc' and 'nop' are present above
|