Hi,
I haven't been working with CGI/Perl for a couple of months and now I'm back creating this online store for a friend.
OK. Everything is working fine so far, except one thing which I cannot remember how to do. I hope you can help.
I keep all records of the products available in flat ASCII files with different values in the files. All different fields are seperated by a denominator (in my case \n%%\n). This can be read by my script and split into 7 fields.
One field however is a few lines long. Each line represent a bullet-point of features realting to that product. What I want to know is how do I read that into the script and then tell the script foreach line within that field make a bullet point...
I think I remember how to do this, but I'm not quite sure of the syntax. It's probably something like read the field into a @ and then split the @ foreach \n.
Anyway, please can anyone help me out here? Thanks!
Regards,
Wiliam Stephens
I haven't been working with CGI/Perl for a couple of months and now I'm back creating this online store for a friend.
OK. Everything is working fine so far, except one thing which I cannot remember how to do. I hope you can help.
I keep all records of the products available in flat ASCII files with different values in the files. All different fields are seperated by a denominator (in my case \n%%\n). This can be read by my script and split into 7 fields.
One field however is a few lines long. Each line represent a bullet-point of features realting to that product. What I want to know is how do I read that into the script and then tell the script foreach line within that field make a bullet point...
I think I remember how to do this, but I'm not quite sure of the syntax. It's probably something like read the field into a @ and then split the @ foreach \n.
Anyway, please can anyone help me out here? Thanks!
Regards,
Wiliam Stephens