I am trying to get to use the grep function in perl,
I have been searching web pages but can't get a simple example.
I am reading in a .csv file with 7 columns and loads of rows, this is done with:
$dat_file = 'sample.csv';
In the 3rd or 5th column I could find the information I want for example it might have a manufactured such as say nokia.
I want to create a new .csv file that just has all rows that contain nokia.
I did this very easily in ubuntu with just grep nokia sample.csv > nokia.csv
Does anyone know how to do this simply in perl?