in reply to Predefined Sort
setbuf(3), but for Perl files? You can probably do something like that in XS (so long as Perl is using stdio), but I don't know of a Perl way off-hand.
PS -- "How can you open 30,000 files?!" and "You can't open 30,000 files!" have to be two of the stupidest, least relevant, and most useless responses I've ever seen on this site.
PPS: Wrong thread -- man, I need some sleep.