I have a file
inputfile abc pqr ghi lmn xyz
How do I extract certain line in using perl? For example: I want rows pqr, ghi, lmn. I want to assign line numbers and extract these rows..so for pqr, ghi and lmn I will use lines 2, 3 and 4 respectively. Any simple perl solution?