How to perl script to extract data

mnanjala created the topic: how to perl script to extract data

Hi All,

Below are the contents in the test.txt file

id name adress
1 rajesh pune
2 pravin puttur
3 bani banglore

Now can anybody write perl script to extract data based on id ?

Example if id is 1 it should print rajesh from pune and so on

Thanks
Pravin