in reply to Get output AnyData script without header or data_row

Two things jump out at me immediately: First, you may want to turn off buffering.
open( OUT, ">blah.csv" ) or die "cant open out $!"; select OUT; $|++;
Second, you should close your first filehandle (OUT) to blah.csv before opening a new handle (FH) to it. This is really just good practice given the way you are using the file.

Another option would be to reset the file pointer to the beginning of the file and just keep using the same filehandle.

Replies are listed 'Best First'.
Re^2: Get output AnyData script without header or data_row
by GertMT (Hermit) on Dec 19, 2007 at 18:35 UTC
    alright thanks, that works. Never really paid much focus on 'closing' of files but I will do from now on!