G. Wade,
>> Can anyone tell me if the diamond operator is optimized in a print
>> statement or does it really read the file into memory then print it?
>
>The real question is are you doing more than just concatenating the
>files?
I guess this comment sparked research and `tail` actually does what I need to
do.
qx{cat X > out.txt; tail --lines=+2 Y Z >> out.txt};
Maybe I'll just head out to the command line it just won't be portable. There
will be about 300 CSV files to merge in the process but I only need the header
row on the first one.
But, performance is not really as big of a concern as memory for this process.
Thanks,
Mike _______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/