in reply to How do I search and output results to HTML from a CSV database file?
This should cope with any number of fields andwhile ($line = <FILE1>) { @fields = split / /, $line; $output = pop @fields; foreach $field (@fields) { $output = $output . ',' . $field; } print <FILE2> qq($output\n); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I search and output results to HTML from a CSV database file?
by jeroenes (Priest) on May 15, 2001 at 10:21 UTC | |
by ColtsFoot (Chaplain) on May 15, 2001 at 10:58 UTC |