Perl script to print out cars model and car color
- by Gary Liggons
I am tying to create a perl script to printout car models and colors, and the data is below. I want to know if there is anyway to make the car model heading a field so that I can print it any time I want to? the data below is a csv file. the way I want the data to look on a report is below as well
This is how the data looks*
Chevy
blue,1978,Washington
brown,1989,Dallas
black,2001,Queens
white,2003,Manhattan
Toyota
red,2003,Bronx
green,2004,Queens
brown,2002,Brooklyn
black,1999,Harlem
****This is how I am trying to get the data to look in a report****
Car Model:Toyota
Color:Red Year:2002 City: Queens