Hi,
I have a file which has contents like this :
Indicators :
for issues with indicators contact a@x.com
for access to indicators contact b@x.com
Unix_Versions :
for latest unix versions check out u.versions.com/new.html
for past versions please see u.versions.com/old.html
-----------------
The keywords are indicators & unix versions
if somebody runs a perl script with any of the keywords, they should the lines corresponding to that.
Say they do, test.pl unix_versions, the 2 lines in the above file below the keyword unix_versions should be printed on screen.
---------------
how to do that ?
I think I need to read in the above file into an array.But am not sure how to go about after that.