in reply to Speed comparison between printing to STDOUT and printing to a filehandle

Is there any reason why you can't just do a normal print to a filehandle?

print FILE "this is text\n";

And if you must redirect the output of an unqualified print statement, why not just use select?

select(FILE); print "Printing to FILE\n"; select(STDOUT); print "Printing to STDOUT\n";

Typeglobs are cool and all, but I try to avoid messing with the symbol table whenever possible.


TGI says moo