in reply to Re: How do I search and output results to HTML from a CSV database file?
in thread How do I search and output results to HTML from a CSV database file?

Indeed. But we can tidy up a bit:
while( <FILE> ) { split; print FILE2 join ',' , @_; print FILE2 "\n"; }
Here you see that the perl shorthands improve readibility.

And this even compacts to (trading readability a bit):

print FILE2 join( ',', split )."\n" while <FILE>; #or use SuperSplit; print FILE2 superjoin( ',', supersplit_open( $filename ) );

Jeroen
"We are not alone"(FZ)

Replies are listed 'Best First'.
Re: Re: Re: How do I search and output results to HTML from a CSV database file?
by ColtsFoot (Chaplain) on May 15, 2001 at 10:58 UTC
    Jeroen your solutions realy show the power of perl
    As Sasquire was an "Initiate" I felt that my solution
    was a little easier to follow