in reply to CGI list of links to record details from flat-file database

I am no expert on perl like alot of these guys, but heres what I would do. make the access file easier to parse. I would have the entries something like this:
0001:97 Ford Mustang:Red:46000:9990.00 0002:99 Chevy Blazer:Black:19000:17000.00
where this is an actual newline character between each entry. also, not the first field, which you did not have. This is just a number, but basically it needs to be unique for each car, and then the car will have the html file called 0001.html for example that shows its info. I am not sure if you didnt want to have to have a seperate webpage for each car already made or whatever, but this is what I can think of. Then do something like this:
@car_data = `cat data.file`; foreach (@car_data) { @temp_data = ""; # clear this array @temp_data = split(/:/,$_); # split the current line by semi-colin + into the array @temp_data print "<a href="http://yoursite/$car_data[0].html">$car_data[1]</a +>\n"; # prints the link }
so you'd have, for these two examples:
97 Ford Mustang
99 Chevy Blazer
thats all I got. I am sure this advice is subpar, and the experts here will quickly correct me.

Edit by tye, formatting