Is it necessary to use gensym() in a PerlHandler() - it doesn't seem
necessary to me. The book says "Ordinary bareword filehandles are prone to
namespace clashes". Is that the case for a perl module? I don't think
so. When I do:
open(FH, $filename) || die "Open failed: $!";
I get *__PACKAGE__::FH. Which can't ever clash with something else unless
some rogue script trys to create a new package with the same name. But
even then, under the current model those scripts can't be executing at the
same time. And under the mod_perl 2.0 model the script will be executing
in a different parse tree, so they will be different *FH's there too.
So do I have to use gensym(), or not?
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org